Home GnuPG
Diffusion GnuPG 0a63afc79a04

dirmngr: Disable the HTTP redirect rewriting.

Description

dirmngr: Disable the HTTP redirect rewriting.

* dirmngr/http.h (struct http_redir_info_s): Add restrict_redir.
* dirmngr/ks-engine-hkp.c (send_request): Set it depending on flags.
* dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
* dirmngr/t-http-basic.c (test_http_prepare_redirect): Always set it.
* dirmngr/http.c (http_prepare_redirect): Remove location rewriting
unless the flag is set.

Details

Provenance
wernerAuthored on Jun 15 2023, 3:06 PM
Parents
rGbf04b07327a5: dirmngr: New option --compatibility-flags.
Branches
Unknown
Tags
Unknown
Tasks
T6477: WKD redirects and dirmngr redirect rewriting