git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] http: always use any proxy auth method available

From
Enrique Tobis <enrique.tobis@twosigma.com>
Date
Jun 26, 2015, 18:19 UTC
Message-ID
<FCAB894186380D42A07AFFFA5A1282B8F1EC65FD@EXMBNJE2.ad.twosigma.com>

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
Next: Junio C Hamano
Message 1 of 4 in “http: always use any proxy auth method available”
  1. http: always use any proxy auth method availableEnrique Tobis, Jun 26, 2015
  2. Junio C HamanoJun 26, 2015
  3. Enrique TobisJun 26, 2015
  4. Junio C HamanoJun 29, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.