diff options
author | Steve Holme <steve_holme@hotmail.com> | 2016-03-20 11:56:07 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2016-08-18 20:31:20 +0100 |
commit | a0f212946b1e839a673973930034b98031f1507c (patch) | |
tree | 176a18d51867ce716a224b607ca82f8752ba5b5f /lib/vauth/krb5_sspi.c | |
parent | cdd61dc35fc093f6e78da0168070a09f45becf5c (diff) | |
download | curl-a0f212946b1e839a673973930034b98031f1507c.tar.gz |
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/krb5_sspi.c')
-rw-r--r-- | lib/vauth/krb5_sspi.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ -40,6 +40,22 @@ #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() * * This is used to generate an already encoded GSSAPI (Kerberos V5) user token |