diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-11-05 11:43:22 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-11-05 11:54:02 +0000 |
commit | d62cb0f5d04597fa61ebfa6a5734b8283aa57646 (patch) | |
tree | 9b8771142009a38126b74868ec3004372f2a51e5 /lib/curl_ntlm_msgs.c | |
parent | 1c05b9359d7dd96c7da5a8609beb679533edb595 (diff) |
sspi: Define authentication package name constants
These were previously hard coded, and whilst defined in security.h,
they may or may not be present in old header files given that these
defines were never used in the original code.
Not only that, but there appears to be some ambiguity between the ANSI
and UNICODE NTLM definition name in security.h.
Diffstat (limited to 'lib/curl_ntlm_msgs.c')
-rw-r--r-- | lib/curl_ntlm_msgs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c index 14ddc5f9c..f8172b51b 100644 --- a/lib/curl_ntlm_msgs.c +++ b/lib/curl_ntlm_msgs.c @@ -433,7 +433,7 @@ CURLcode Curl_ntlm_create_type1_message(const char *userp, Curl_ntlm_sspi_cleanup(ntlm); /* Query the security package for NTLM */ - status = s_pSecFn->QuerySecurityPackageInfo((TCHAR *) TEXT("NTLM"), + status = s_pSecFn->QuerySecurityPackageInfo((TCHAR *) TEXT(SP_NAME_NTLM), &SecurityPackage); if(status != SEC_E_OK) return CURLE_NOT_BUILT_IN; @@ -472,7 +472,7 @@ CURLcode Curl_ntlm_create_type1_message(const char *userp, /* Acquire our credentials handle */ status = s_pSecFn->AcquireCredentialsHandle(NULL, - (TCHAR *) TEXT("NTLM"), + (TCHAR *) TEXT(SP_NAME_NTLM), SECPKG_CRED_OUTBOUND, NULL, ntlm->p_identity, NULL, NULL, ntlm->credentials, &expiry); |