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 | |
parent | 795fe5c42fc25332dd32dc29aede858043596f70 (diff) | |
download | rspamd-bdf9d36628e94034fadb7e6e5c6f7927b735f40c.tar.gz rspamd-bdf9d36628e94034fadb7e6e5c6f7927b735f40c.zip |
[Minor] Make function to punycode DNS values publicly available
-rw-r--r-- | contrib/librdns/packet.h | 10 | ||||
-rw-r--r-- | contrib/librdns/rdns.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/contrib/librdns/packet.h b/contrib/librdns/packet.h index f4c09b900..6d22de4e0 100644 --- a/contrib/librdns/packet.h +++ b/contrib/librdns/packet.h @@ -44,16 +44,6 @@ void rdns_make_dns_header (struct rdns_request *req, unsigned int qcount); /** - * Format DNS name of the packet - * @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); - -/** * Add a resource record to the DNS packet * @param req request * @param name requested name 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 */ |