gpg: Print a warning on Tor problems.
authorWerner Koch <wk@gnupg.org>
Tue, 24 Jan 2017 19:45:31 +0000 (20:45 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 24 Jan 2017 19:52:24 +0000 (20:52 +0100)
commit770b75a746836773909af25ccb9b480e61cea677
treea70ef2ab370e36029ac63e96b3a7e5792fb1e3bd
parent51e5a5e5a46279809848b4ab4419f35045336010
gpg: Print a warning on Tor problems.

* dirmngr/ks-engine-hkp.c (tor_not_running_p): New.
(map_host): Call that to print a warning.
(handle_send_request_error): Ditto and avoid marking the host dead.
Also print a tor_config_problem warning.  Add arg CTRL; adjust callers
to pass that new arg.
* g10/call-dirmngr.c (ks_status_cb): Detect and print the new
warnings.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/ks-engine-hkp.c
g10/call-dirmngr.c