diff options
author | Justus Winter <[email protected]> | 2017-07-18 15:24:21 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-07-19 09:18:39 +0000 |
commit | 73d4781e4595634548269bafe46aeb7674c5b219 (patch) | |
tree | a8797285b590ab717fdb112e61266faab4dd3a3c | |
parent | gpgconf: Make vars read-only explicitly. (diff) | |
download | gnupg-73d4781e4595634548269bafe46aeb7674c5b219.tar.gz gnupg-73d4781e4595634548269bafe46aeb7674c5b219.zip |
dirmngr: Fix handling of proxy URIs.
* dirmngr/http.c (send_request): We do not support socks4.
Signed-off-by: Justus Winter <[email protected]>
-rw-r--r-- | dirmngr/http.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dirmngr/http.c b/dirmngr/http.c index 0cb27087c..b5b0e9dbf 100644 --- a/dirmngr/http.c +++ b/dirmngr/http.c @@ -1756,9 +1756,10 @@ send_request (http_t hd, const char *httphost, const char *auth, if (err) ; - else if (!strcmp (uri->scheme, "http") || !strcmp (uri->scheme, "socks4")) + else if (!strcmp (uri->scheme, "http")) ; - else if (!strcmp (uri->scheme, "socks5h")) + else if (!strcmp (uri->scheme, "socks4") + || !strcmp (uri->scheme, "socks5h")) err = gpg_err_make (default_errsource, GPG_ERR_NOT_IMPLEMENTED); else err = gpg_err_make (default_errsource, GPG_ERR_INV_URI); |