git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Martin Storsjo <martin@martin.st>
To: git@vger.kernel.org
Subject: [PATCH] Allow any HTTP authentication scheme, not only basic
Date: Tue, 31 Mar 2009 21:54:25 +0300	[thread overview]
Message-ID: <1238525665-10776-1-git-send-email-martin@martin.st> (raw)
In-Reply-To: <1238520686-546-1-git-send-email-martin@martin.st>

Signed-off-by: Martin Storsjo <martin@martin.st>
---
Updated patch, enable only on libcurl versions new enough

 http.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/http.c b/http.c
index 2fc55d6..eae74aa 100644
--- a/http.c
+++ b/http.c
@@ -165,6 +165,9 @@ static CURL *get_curl_handle(void)
 #if LIBCURL_VERSION_NUM >= 0x070907
 	curl_easy_setopt(result, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);
 #endif
+#if LIBCURL_VERSION_NUM >= 0x070a06
+	curl_easy_setopt(result, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
+#endif
 
 	init_curl_http_auth(result);
 
-- 
1.6.0.2

  reply	other threads:[~2009-03-31 18:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-31 17:31 [PATCH] Allow any HTTP authentication scheme, not only basic Martin Storsjo
2009-03-31 18:54 ` Martin Storsjo [this message]
2009-03-31 19:04   ` Johannes Schindelin
2009-04-01 15:06     ` Martin Storsjö

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1238525665-10776-1-git-send-email-martin@martin.st \
    --to=martin@martin.st \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).