mirror of
https://github.com/curl/curl.git
synced 2026-06-23 22:35:37 +03:00
vauth: Added check for supported SSPI based authentication mechanisms
Completing commit00417fd66cand2708d4259b.
This commit is contained in:
parent
317795d1bf
commit
43dbd76616
4 changed files with 34 additions and 12 deletions
|
|
@ -54,9 +54,14 @@
|
|||
*/
|
||||
bool Curl_auth_is_digest_supported(void)
|
||||
{
|
||||
/* TODO: Return true for now which maintains compatability with the existing
|
||||
code */
|
||||
return TRUE;
|
||||
PSecPkgInfo SecurityPackage;
|
||||
SECURITY_STATUS status;
|
||||
|
||||
/* Query the security package for Digest */
|
||||
status = s_pSecFn->QuerySecurityPackageInfo((TCHAR *) TEXT(SP_NAME_DIGEST),
|
||||
&SecurityPackage);
|
||||
|
||||
return (status == SEC_E_OK ? TRUE : FALSE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -50,9 +50,15 @@
|
|||
*/
|
||||
bool Curl_auth_is_gssapi_supported(void)
|
||||
{
|
||||
/* TODO: Return true for now which maintains compatability with the existing
|
||||
code */
|
||||
return TRUE;
|
||||
PSecPkgInfo SecurityPackage;
|
||||
SECURITY_STATUS status;
|
||||
|
||||
/* Query the security package for Kerberos */
|
||||
status = s_pSecFn->QuerySecurityPackageInfo((TCHAR *)
|
||||
TEXT(SP_NAME_KERBEROS),
|
||||
&SecurityPackage);
|
||||
|
||||
return (status == SEC_E_OK ? TRUE : FALSE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -48,9 +48,14 @@
|
|||
*/
|
||||
bool Curl_auth_is_ntlm_supported(void)
|
||||
{
|
||||
/* TODO: Return true for now which maintains compatability with the existing
|
||||
code */
|
||||
return TRUE;
|
||||
PSecPkgInfo SecurityPackage;
|
||||
SECURITY_STATUS status;
|
||||
|
||||
/* Query the security package for NTLM */
|
||||
status = s_pSecFn->QuerySecurityPackageInfo((TCHAR *) TEXT(SP_NAME_NTLM),
|
||||
&SecurityPackage);
|
||||
|
||||
return (status == SEC_E_OK ? TRUE : FALSE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -50,9 +50,15 @@
|
|||
*/
|
||||
bool Curl_auth_is_spnego_supported(void)
|
||||
{
|
||||
/* TODO: Return true for now which maintains compatability with the existing
|
||||
code */
|
||||
return TRUE;
|
||||
PSecPkgInfo SecurityPackage;
|
||||
SECURITY_STATUS status;
|
||||
|
||||
/* Query the security package for Negotiate */
|
||||
status = s_pSecFn->QuerySecurityPackageInfo((TCHAR *)
|
||||
TEXT(SP_NAME_NEGOTIATE),
|
||||
&SecurityPackage);
|
||||
|
||||
return (status == SEC_E_OK ? TRUE : FALSE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue