All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] http: always use any proxy auth method available
@ 2015-06-26 18:19 Enrique Tobis
  2015-06-26 19:24 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Enrique Tobis @ 2015-06-26 18:19 UTC (permalink / raw)
  To: 'gitster@pobox.com'
  Cc: 'git@vger.kernel.org', 'Nelson Benitez Leon'

By default, libcurl honors some environment variables that specify a
proxy (e.g. http_proxy, https_proxy). Also by default, libcurl will
only try to authenticate with a proxy using the Basic method. This
change makes libcurl always try the most secure proxy authentication
method available. As a consequence, you can use environment variables
to instruct git to use a proxy that uses an authentication method
different from Basic (e.g. Negotiate).

Signed-off-by: Enrique A. Tobis <etobis@twosigma.com>
---
 http.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/http.c b/http.c
index f0c5bbc..e9c6fdd 100644
--- a/http.c
+++ b/http.c
@@ -416,10 +416,10 @@ static CURL *get_curl_handle(void)
 
 	if (curl_http_proxy) {
 		curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
+	}
 #if LIBCURL_VERSION_NUM >= 0x070a07
-		curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
+	curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
 #endif
-	}
 
 	set_curl_keepalive(result);
 
-- 
1.7.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-29 17:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26 18:19 [PATCH] http: always use any proxy auth method available Enrique Tobis
2015-06-26 19:24 ` Junio C Hamano
2015-06-26 21:53   ` Enrique Tobis
2015-06-29 17:00     ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.