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/http-common.h | |
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/http-common.h')
-rw-r--r-- | dirmngr/http-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dirmngr/http-common.h b/dirmngr/http-common.h index 5e6657b16..ddb340de6 100644 --- a/dirmngr/http-common.h +++ b/dirmngr/http-common.h @@ -22,4 +22,6 @@ const char *get_default_keyserver (int name_only); +void http_reinitialize (void); + #endif /* HTTP_COMMON_H */ |