summaryrefslogtreecommitdiff
path: root/lib/vauth/ntlm_sspi.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-03-24 19:03:58 +0000
committerSteve Holme <steve_holme@hotmail.com>2016-08-21 10:27:09 +0100
commit43dbd766164153d49ab266355d2f35e6bf010b30 (patch)
treef462aa45c56f76b548f2e830129f3d2b74cb0ceb /lib/vauth/ntlm_sspi.c
parent317795d1bf49e6ec048999c55d204093dd1626d4 (diff)
downloadgnurl-43dbd766164153d49ab266355d2f35e6bf010b30.tar.gz
gnurl-43dbd766164153d49ab266355d2f35e6bf010b30.tar.bz2
gnurl-43dbd766164153d49ab266355d2f35e6bf010b30.zip
vauth: Added check for supported SSPI based authentication mechanisms
Completing commit 00417fd66c and 2708d4259b.
Diffstat (limited to 'lib/vauth/ntlm_sspi.c')
-rw-r--r--lib/vauth/ntlm_sspi.c11
1 files changed, 8 insertions, 3 deletions
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);
}
/*