aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index c328e5ac4..f02eec0cc 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -855,17 +855,32 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
/* default */
data->set.httpdigest = FALSE;
data->set.httpnegotiate = FALSE;
+ data->set.httpntlm = FALSE;
break;
case CURLHTTP_DIGEST:
/* Enable HTTP Digest authentication */
data->set.httpdigest = TRUE;
data->set.httpnegotiate = FALSE;
+ data->set.httpntlm = FALSE;
break;
+ case CURLHTTP_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;
+ break;
+#else
+ /* fall-through */
+#endif
case CURLHTTP_NEGOTIATE:
#ifdef GSSAPI
/* Enable HTTP Negotaiate authentication */
data->set.httpdigest = FALSE;
data->set.httpnegotiate = TRUE;
+ data->set.httpntlm = FALSE;
break;
#else
/* fall-through */