diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-08-06 13:02:35 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-08-06 13:02:35 +0200 |
commit | dc0351893accfc94911cf7067f2b96736675a419 (patch) | |
tree | 2c09c17799a18b9e3ba9782ab60107a087f76a67 | |
parent | 98f7bd289dfb172473b7d7353d4b0f0b09c67937 (diff) | |
download | libgit2-dc0351893accfc94911cf7067f2b96736675a419.tar.gz |
curl: use the most secure auth method for the proxycmn/curl-proxyauth-any
When curl uses a proxy, it will only use Basic unless we prompt it to
try to use the most secure on it has available.
This is something which git did recently, and it seems like a good idea.
-rw-r--r-- | src/curl_stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/curl_stream.c b/src/curl_stream.c index 63421fcf7..798bd5a52 100644 --- a/src/curl_stream.c +++ b/src/curl_stream.c @@ -220,6 +220,7 @@ int git_curl_stream_new(git_stream **out, const char *host, const char *port) curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 1); curl_easy_setopt(handle, CURLOPT_CERTINFO, 1); curl_easy_setopt(handle, CURLOPT_HTTPPROXYTUNNEL, 1); + curl_easy_setopt(handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY); /* curl_easy_setopt(handle, CURLOPT_VERBOSE, 1); */ |