dirmngr: Implement CNAME and SRV record lookup via libdns.
authorWerner Koch <wk@gnupg.org>
Wed, 14 Dec 2016 09:47:53 +0000 (10:47 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 14 Dec 2016 14:57:17 +0000 (15:57 +0100)
commit4c13e4e3debe0e55e86ae29c095f2d86eb0a6f11
tree8de68c866841c9637fbd1c1f0edc1060d064a439
parent4a030f682ef48542ed324b28207f2c2b4847dbef
dirmngr: Implement CNAME and SRV record lookup via libdns.

* dirmngr/dns-stuff.c (dns_free): New macro.
(libdns): Move var to the top.
(libdns_error_to_gpg_error): Map error codes to the new gpg-error
codes.
(resolve_name_libdns): Restructure code.
(getsrv_libdns): New.
(get_dns_cname_libdns): New.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/dns-stuff.c