diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-23 12:05:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-23 12:05:36 +0100 |
commit | e4fcd0fcda0d192b068dc28eb317e09dc0eb3a12 (patch) | |
tree | 2c8db056f1cb0abd24299a1fb900527727e4a4fa /contrib/librdns/rdns.h | |
parent | 9029b54e9f2a3173391e630c8cff5758f2d56321 (diff) | |
download | rspamd-e4fcd0fcda0d192b068dc28eb317e09dc0eb3a12.tar.gz rspamd-e4fcd0fcda0d192b068dc28eb317e09dc0eb3a12.zip |
[Minor] Allow to skip IDN checks in rdns
Diffstat (limited to 'contrib/librdns/rdns.h')
-rw-r--r-- | contrib/librdns/rdns.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/librdns/rdns.h b/contrib/librdns/rdns.h index 5ea8f5952..4df1991fd 100644 --- a/contrib/librdns/rdns.h +++ b/contrib/librdns/rdns.h @@ -233,10 +233,15 @@ struct rdns_request_name { * RDNS API */ +enum rdns_resolver_flags { + RDNS_RESOLVER_DEFAULT, + RDNS_RESOLVER_NOIDN = (1u << 0u), +}; + /** * Create DNS resolver structure */ -struct rdns_resolver *rdns_resolver_new (void); +struct rdns_resolver *rdns_resolver_new (int flags); /** * Bind resolver to specified async context |