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/krb5_sspi.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/vauth/krb5_sspi.c') diff --git a/lib/vauth/krb5_sspi.c b/lib/vauth/krb5_sspi.c index 08774f6c9..e04690046 100644 --- a/lib/vauth/krb5_sspi.c +++ b/lib/vauth/krb5_sspi.c @@ -39,6 +39,22 @@ #include "curl_memory.h" #include "memdebug.h" +/* + * Curl_auth_is_gssapi_supported() + * + * This is used to evaluate if GSSAPI (Kerberos V5) is supported. + * + * Parameters: None + * + * Returns TRUE if Kerberos V5 is supported by Windows SSPI. + */ +bool Curl_auth_is_gssapi_supported(void) +{ + /* TODO: Return true for now which maintains compatability with the existing + code */ + return TRUE; +} + /* * Curl_auth_create_gssapi_user_message() * -- cgit v1.2.3