From a0f212946b1e839a673973930034b98031f1507c Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 20 Mar 2016 11:56:07 +0000 Subject: vauth: Introduced Curl_auth_is__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. --- lib/vauth/digest.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/vauth/digest.c') diff --git a/lib/vauth/digest.c b/lib/vauth/digest.c index 26ea7b598..f4898404f 100644 --- a/lib/vauth/digest.c +++ b/lib/vauth/digest.c @@ -305,6 +305,20 @@ static CURLcode auth_decode_digest_md5_message(const char *chlg64, return CURLE_OK; } +/* + * Curl_auth_is_digest_supported() + * + * This is used to evaluate if DIGEST is supported. + * + * Parameters: None + * + * Returns TRUE as DIGEST as handled by libcurl. + */ +bool Curl_auth_is_digest_supported(void) +{ + return TRUE; +} + /* * Curl_auth_create_digest_md5_message() * -- cgit v1.2.3