diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-18 15:51:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-18 15:51:14 +0100 |
commit | bdf9d36628e94034fadb7e6e5c6f7927b735f40c (patch) | |
tree | 8d3abaa68d1c81e59dbc26143012535f29fd4c29 /contrib/librdns/rdns.h | |
parent | 795fe5c42fc25332dd32dc29aede858043596f70 (diff) | |
download | rspamd-bdf9d36628e94034fadb7e6e5c6f7927b735f40c.tar.gz rspamd-bdf9d36628e94034fadb7e6e5c6f7927b735f40c.zip |
[Minor] Make function to punycode DNS values publicly available
Diffstat (limited to 'contrib/librdns/rdns.h')
-rw-r--r-- | contrib/librdns/rdns.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/librdns/rdns.h b/contrib/librdns/rdns.h index 56630536c..d7615667e 100644 --- a/contrib/librdns/rdns.h +++ b/contrib/librdns/rdns.h @@ -382,6 +382,16 @@ const struct rdns_request_name* rdns_request_get_name (struct rdns_request *req, */ char * rdns_generate_ptr_from_str (const char *str); +/** + * Format DNS name of the packet punycoding if needed + * @param req request + * @param name name string + * @param namelen length of name + */ +bool rdns_format_dns_name (struct rdns_resolver *resolver, + const char *name, size_t namelen, + char **out, size_t *outlen); + /* * Private functions used by async libraries as callbacks */ |