dirmngr: Prefer ADNS over system resolver.
authorWerner Koch <wk@gnupg.org>
Tue, 20 Oct 2015 17:03:26 +0000 (19:03 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 20 Oct 2015 17:03:26 +0000 (19:03 +0200)
commit58ebe50bdf4837e9ab2d3f8c6e5fcf28c66f26e9
tree0d51f1bbc2762349f7094b7128e5eb74822077c4
parentc83b627174f46e841f1ccc018322fe499969c267
dirmngr: Prefer ADNS over system resolver.

* configure.ac (HAVE_ADNS_IF_TORMODE): New ac_define.
(USE_DNS_CERT): Prefer ADNS over the system resolver.
* dirmngr/dns-cert.c (tor_mode): New global var.
(enable_dns_tormode): New func.
(get_dns_cert): Use DNS resolver at 8.8.8.8 in tor-mode.
* dirmngr/server.c (cmd_dns_cert): If supported allow DNS requests.
configure.ac
dirmngr/dns-cert.c
dirmngr/dns-cert.h
dirmngr/server.c