diff options
author | Werner Koch <wk@gnupg.org> | 2019-11-18 17:22:45 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-11-18 18:24:02 +0100 |
commit | ae9acb8745c1654b446b3cd5b9322b235723d9cb (patch) | |
tree | c9d0e5a981f10d9dfe1b7cdf5f7e877ab1fd2417 /dirmngr/ks-engine-http.c | |
parent | dirmngr: Fixed typo in recently added diagnostic. (diff) | |
download | gnupg2-ae9acb8745c1654b446b3cd5b9322b235723d9cb.tar.xz gnupg2-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 <wk@gnupg.org>
Diffstat (limited to 'dirmngr/ks-engine-http.c')
-rw-r--r-- | dirmngr/ks-engine-http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dirmngr/ks-engine-http.c b/dirmngr/ks-engine-http.c index a84a3a1ea..007bbc99d 100644 --- a/dirmngr/ks-engine-http.c +++ b/dirmngr/ks-engine-http.c @@ -82,6 +82,7 @@ ks_http_fetch (ctrl_t ctrl, const char *url, unsigned int flags, err = http_parse_uri (&uri, url, 0); if (err) goto leave; + redirinfo.ctrl = ctrl; redirinfo.orig_url = url; redirinfo.orig_onion = uri->onion; redirinfo.orig_https = uri->use_tls; |