diff options
author | Werner Koch <[email protected]> | 2019-11-18 16:22:45 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-11-18 17:24:02 +0000 |
commit | ae9acb8745c1654b446b3cd5b9322b235723d9cb (patch) | |
tree | c9d0e5a981f10d9dfe1b7cdf5f7e877ab1fd2417 /g10/call-dirmngr.c | |
parent | dirmngr: Fixed typo in recently added diagnostic. (diff) | |
download | gnupg-ae9acb8745c1654b446b3cd5b9322b235723d9cb.tar.gz gnupg-ae9acb8745c1654b446b3cd5b9322b235723d9cb.zip |
dirmngr: Forward http redirect warnings to gpg.
* dirmngr/http.c: Include dirmngr-status.h
(http_prepare_redirect): Emit WARNING status lines for redirection
problems.
* dirmngr/http.h: Include fwddecl.h.
(struct http_redir_info_s): Add field ctrl.
* dirmngr/ks-engine-hkp.c (send_request): Set it.
* dirmngr/ks-engine-http.c (ks_http_fetch): Set it.
* g10/call-dirmngr.c (ks_status_cb): Detect the two new warnings.
--
This should make it easier to diagnose problems with bad WKD servers.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/call-dirmngr.c')
-rw-r--r-- | g10/call-dirmngr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/call-dirmngr.c b/g10/call-dirmngr.c index 8f83c087f..58829c764 100644 --- a/g10/call-dirmngr.c +++ b/g10/call-dirmngr.c @@ -414,6 +414,10 @@ ks_status_cb (void *opaque, const char *line) warn = _("Tor is not properly configured"); else if ((s2 = has_leading_keyword (s, "dns_config_problem"))) warn = _("DNS is not properly configured"); + else if ((s2 = has_leading_keyword (s, "http_redirect"))) + warn = _("unacceptable HTTP redirect from server"); + else if ((s2 = has_leading_keyword (s, "http_redirect_cleanup"))) + warn = _("unacceptable HTTP redirect from server was cleaned up"); else warn = NULL; |