mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
dirmngr: More minor fix.
* dirmngr/http.c (send_request): Care the case of !USE_TLS. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
789401e955
commit
ade4b2744c
@ -1672,7 +1672,9 @@ send_request (http_t hd, const char *httphost, const char *auth,
|
|||||||
char *proxy_authstr = NULL;
|
char *proxy_authstr = NULL;
|
||||||
char *authstr = NULL;
|
char *authstr = NULL;
|
||||||
assuan_fd_t sock;
|
assuan_fd_t sock;
|
||||||
|
#ifdef USE_TLS
|
||||||
int have_http_proxy = 0;
|
int have_http_proxy = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (hd->uri->use_tls && !hd->session)
|
if (hd->uri->use_tls && !hd->session)
|
||||||
{
|
{
|
||||||
@ -1759,8 +1761,10 @@ send_request (http_t hd, const char *httphost, const char *auth,
|
|||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
;
|
;
|
||||||
|
#ifdef USE_TLS
|
||||||
else if (!strcmp (uri->scheme, "http"))
|
else if (!strcmp (uri->scheme, "http"))
|
||||||
have_http_proxy = 1;
|
have_http_proxy = 1;
|
||||||
|
#endif
|
||||||
else if (!strcmp (uri->scheme, "socks4")
|
else if (!strcmp (uri->scheme, "socks4")
|
||||||
|| !strcmp (uri->scheme, "socks5h"))
|
|| !strcmp (uri->scheme, "socks5h"))
|
||||||
err = gpg_err_make (default_errsource, GPG_ERR_NOT_IMPLEMENTED);
|
err = gpg_err_make (default_errsource, GPG_ERR_NOT_IMPLEMENTED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user