dirmngr: Make --use-tor work - still leaks DNS.
authorWerner Koch <wk@gnupg.org>
Mon, 19 Oct 2015 11:12:24 +0000 (13:12 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 19 Oct 2015 11:17:58 +0000 (13:17 +0200)
commit6983fd131f648ba4acd57b266de9868911874d14
tree0ae92d271eb2dfbaf5cb2e110f05e94b65bcdcf6
parent8c609eaf35b547f02979ef0b206520dd0853b294
dirmngr: Make --use-tor work - still leaks DNS.

* dirmngr/dirmngr.c (set_tor_mode): New.
(main, reread_configuration): Call it.
* dirmngr/http.c (http_raw_connect, send_request): Check whether TOR
mode is enabled if the FORCE_TOR flag is given.
--

The patch for http.c is a sanity check because tor mode is anyway
global as long as the Assuan socket wrappers are used.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/dirmngr.c
dirmngr/http.c
doc/dirmngr.texi