dirmngr: Auto-switch from Tor port to Torbrowser port.
authorWerner Koch <wk@gnupg.org>
Fri, 16 Dec 2016 20:56:23 +0000 (21:56 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 16 Dec 2016 20:56:23 +0000 (21:56 +0100)
commit024dbd7162fc1a7694176ebad3c21ee3ea67c024
tree6150c18d71fbdbfaa9355c63dc675f669b882993
parentc4e8a3194d6b92f596a6483e486c645de7d2ddd1
dirmngr: Auto-switch from Tor port to Torbrowser port.

* dirmngr/dns-stuff.c (libdns_tor_port): New var.
(set_dns_nameserver): Clear that var.
(libdns_init): Init var to the default port.
(libdns_switch_port_p): New func.
(resolve_dns_name): Use function to switch the port
(get_dns_cert): Ditto.
(getsrv): Ditto.
(get_dns_cname): Ditto.

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