diff options
author | Werner Koch <[email protected]> | 2023-09-19 13:04:49 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-09-26 12:10:13 +0000 |
commit | 1e120f5a8d529150cd0268eb104b8f0d84f7b5ae (patch) | |
tree | 0bbac42974bb74cf8e929b6e7f26865c010b716f /dirmngr/dirmngr.c | |
parent | dirmngr: Further simplify the http code and improve a message. (diff) | |
download | gnupg-1e120f5a8d529150cd0268eb104b8f0d84f7b5ae.tar.gz gnupg-1e120f5a8d529150cd0268eb104b8f0d84f7b5ae.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 97c2dc490..f79a0f877 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -2045,6 +2045,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 (); } |