aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-06-12 17:34:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-06-12 17:34:27 +0000
commitecf32c964aa1f45285d26c91f2cad5513075aa45 (patch)
treed82d3f186b1762d21577c306e8d54831499889a3 /lib/url.c
parente58f30b82a90cd79724ddc567b9e87732e3b1fa6 (diff)
CURLHTTP* renamed to CURLAUTH* and NEGOTIATE is now GSSNEGOTIATE as there's
a "plain" Negotiate as well.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/lib/url.c b/lib/url.c
index f02eec0cc..397d1d452 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -851,36 +851,24 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
{
curl_httpauth auth = va_arg(param, long);
switch(auth) {
- case CURLHTTP_BASIC:
- /* default */
- data->set.httpdigest = FALSE;
- data->set.httpnegotiate = FALSE;
- data->set.httpntlm = FALSE;
+ case CURLAUTH_BASIC:
+ case CURLAUTH_DIGEST:
+ data->set.httpauth = auth;
break;
- case CURLHTTP_DIGEST:
- /* Enable HTTP Digest authentication */
- data->set.httpdigest = TRUE;
- data->set.httpnegotiate = FALSE;
- data->set.httpntlm = FALSE;
- break;
- case CURLHTTP_NTLM:
+ case CURLAUTH_NTLM:
/* Enable HTTP NTLM authentication */
#ifdef USE_SSLEAY
/* We can only support NTLM if OpenSSL is present, as we need their
crypto package for it */
- data->set.httpdigest = FALSE;
- data->set.httpnegotiate = FALSE;
- data->set.httpntlm = TRUE;
+ data->set.httpauth = auth;
break;
#else
/* fall-through */
#endif
- case CURLHTTP_NEGOTIATE:
+ case CURLAUTH_GSSNEGOTIATE:
#ifdef GSSAPI
/* Enable HTTP Negotaiate authentication */
- data->set.httpdigest = FALSE;
- data->set.httpnegotiate = TRUE;
- data->set.httpntlm = FALSE;
+ data->set.httpauth = auth;
break;
#else
/* fall-through */