From 43dbd766164153d49ab266355d2f35e6bf010b30 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Thu, 24 Mar 2016 19:03:58 +0000 Subject: vauth: Added check for supported SSPI based authentication mechanisms Completing commit 00417fd66c and 2708d4259b. --- lib/vauth/ntlm_sspi.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lib/vauth/ntlm_sspi.c') diff --git a/lib/vauth/ntlm_sspi.c b/lib/vauth/ntlm_sspi.c index 6f446780e..c3305176d 100644 --- a/lib/vauth/ntlm_sspi.c +++ b/lib/vauth/ntlm_sspi.c @@ -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); } /* -- cgit v1.2.3