[git] GnuPG - branch, master, updated. gnupg-2.1.17-64-g20dfcfe
by Werner Koch
cvs at cvs.gnupg.org
Wed Jan 11 17:11:45 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, master has been updated
via 20dfcfe08c618d23134d5d6efef7676b090f30d3 (commit)
from 76fb2febde10da8237bbe7613830b51af2a45139 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 20dfcfe08c618d23134d5d6efef7676b090f30d3
Author: Werner Koch <wk at gnupg.org>
Date: Wed Jan 11 17:09:16 2017 +0100
dirmngr: After a connection failure log a hint if Tor is not running.
* dirmngr/ks-engine-hkp.c (handle_send_request_error): Check whether
Tor is running.
Signed-off-by: Werner Koch <wk at gnupg.org>
diff --git a/dirmngr/ks-engine-hkp.c b/dirmngr/ks-engine-hkp.c
index ddeba45..5febb13 100644
--- a/dirmngr/ks-engine-hkp.c
+++ b/dirmngr/ks-engine-hkp.c
@@ -1138,6 +1138,17 @@ handle_send_request_error (gpg_error_t err, const char *request,
switch (gpg_err_code (err))
{
case GPG_ERR_ECONNREFUSED:
+ if (opt.use_tor)
+ {
+ assuan_fd_t sock;
+
+ sock = assuan_sock_connect_byname (NULL, 0, 0, NULL, ASSUAN_SOCK_TOR);
+ if (sock == ASSUAN_INVALID_FD)
+ log_info ("(it seems Tor is not running)\n");
+ else
+ assuan_sock_close (sock);
+ }
+ /*FALLTHRU*/
case GPG_ERR_ENETUNREACH:
case GPG_ERR_ENETDOWN:
case GPG_ERR_UNKNOWN_HOST:
-----------------------------------------------------------------------
Summary of changes:
dirmngr/ks-engine-hkp.c | 11 +++++++++++
1 file changed, 11 insertions(+)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list