dirmngr: Allow reverse DNS lookups in Tor-mode.
authorWerner Koch <wk@gnupg.org>
Mon, 16 Jan 2017 18:03:39 +0000 (19:03 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 16 Jan 2017 18:12:03 +0000 (19:12 +0100)
commit9850124c7bdf0a0e7c1866abc85f3437257d7095
tree40ec1305b936f0af27b37eaed6f04ba68c8b7475
parentdaae97bc14742c75408c4eb05808a2102cfe2bcf
dirmngr: Allow reverse DNS lookups in Tor-mode.

* dirmngr/dns-stuff.c (resolve_dns_name): Move up in the file.
(resolve_addr_libdns): New.
(resolve_dns_addr): Divert to resolve_dns_addr.
--

In the old code reverse lookups where disabled in Tor mode.  By
implementing the reverse lookups via libdns it is now possible to do
them also in Tor mode.

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