mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
5967cfcc71
commit
ae9acb8745
5 changed files with 24 additions and 1 deletions
|
@ -32,6 +32,7 @@
|
|||
#define GNUPG_COMMON_HTTP_H
|
||||
|
||||
#include <gpg-error.h>
|
||||
#include "../common/fwddecl.h"
|
||||
|
||||
struct uri_tuple_s
|
||||
{
|
||||
|
@ -106,6 +107,7 @@ typedef struct http_context_s *http_t;
|
|||
struct http_redir_info_s
|
||||
{
|
||||
unsigned int redirects_left; /* Number of still possible redirects. */
|
||||
ctrl_t ctrl; /* The usual connection info or NULL. */
|
||||
const char *orig_url; /* The original requested URL. */
|
||||
unsigned int orig_onion:1; /* Original request was an onion address. */
|
||||
unsigned int orig_https:1; /* Original request was a http address. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue