Home GnuPG
Diffusion GnuPG 4dd509912524

dirmngr: Forward http redirect warnings to gpg.

Description

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>

Details

Provenance
wernerAuthored on Nov 18 2019, 5:22 PM
Parents
rG466bdf7c07f4: dirmngr: Factor some prototypes out to dirmngr-status.h.
Branches
Unknown
Tags
Unknown