diff options
author | Werner Koch <[email protected]> | 2023-09-19 13:04:49 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-09-19 13:04:49 +0000 |
commit | 63acf06efb971bcb83820b5b9392d7398fc35db9 (patch) | |
tree | 8b19c995e9b639d514c57fed8090cf0e65c9ceee /dirmngr/dirmngr.c | |
parent | dirmngr: Further simplify the http code and improve a message. (diff) | |
download | gnupg-63acf06efb971bcb83820b5b9392d7398fc35db9.tar.gz gnupg-63acf06efb971bcb83820b5b9392d7398fc35db9.zip |
dirmngr: Implement automatic proxy detection on Windows.
* dirmngr/http.c [W32]: Include winhttp.h
(w32_get_internet_session): New.
(w32_get_proxy): New.
(get_proxy_for_url): Implement automatic proxy detection and fix error
in last patch.
(http_reinitialize): New.
* dirmngr/dirmngr.c (dirmngr_sighup_action): Call reinitialize.
* dirmngr/Makefile.am (NETLIBS) [W32]: Link with winhttp.
--
GnuPG-bug-id: 5768
Diffstat (limited to 'dirmngr/dirmngr.c')
-rw-r--r-- | dirmngr/dirmngr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c index fa03614bd..06ef22bf5 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -1999,6 +1999,7 @@ dirmngr_sighup_action (void) crl_cache_deinit (); cert_cache_init (hkp_cacert_filenames); crl_cache_init (); + http_reinitialize (); reload_dns_stuff (0); ks_hkp_reload (); } |