summaryrefslogtreecommitdiff
path: root/lib/vauth/ntlm.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-03-20 11:56:07 +0000
committerSteve Holme <steve_holme@hotmail.com>2016-08-18 20:31:20 +0100
commita0f212946b1e839a673973930034b98031f1507c (patch)
tree176a18d51867ce716a224b607ca82f8752ba5b5f /lib/vauth/ntlm.c
parentcdd61dc35fc093f6e78da0168070a09f45becf5c (diff)
downloadgnurl-a0f212946b1e839a673973930034b98031f1507c.tar.gz
gnurl-a0f212946b1e839a673973930034b98031f1507c.tar.bz2
gnurl-a0f212946b1e839a673973930034b98031f1507c.zip
vauth: Introduced Curl_auth_is_<mechansism>_supported() functions
As Windows SSPI authentication calls fail when a particular mechanism isn't available, introduced these functions for DIGEST, NTLM, Kerberos 5 and Negotiate to allow both HTTP and SASL authentication the opportunity to query support for a supported mechanism before selecting it. For now each function returns TRUE to maintain compatability with the existing code when called.
Diffstat (limited to 'lib/vauth/ntlm.c')
-rw-r--r--lib/vauth/ntlm.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/vauth/ntlm.c b/lib/vauth/ntlm.c
index c85fe4298..b484a011a 100644
--- a/lib/vauth/ntlm.c
+++ b/lib/vauth/ntlm.c
@@ -217,6 +217,20 @@ static CURLcode ntlm_decode_type2_target(struct Curl_easy *data,
*/
/*
+ * Curl_auth_is_ntlm_supported()
+ *
+ * This is used to evaluate if NTLM is supported.
+ *
+ * Parameters: None
+ *
+ * Returns TRUE as NTLM as handled by libcurl.
+ */
+bool Curl_auth_is_ntlm_supported(void)
+{
+ return TRUE;
+}
+
+/*
* Curl_auth_decode_ntlm_type2_message()
*
* This is used to decode an already encoded NTLM type-2 message. The message