]> granicus.if.org Git - curl/commit
sasl_sspi: Fixed SPN not being converted to wchar under Unicode builds
authorSteve Holme <steve_holme@hotmail.com>
Sat, 9 Aug 2014 16:04:10 +0000 (17:04 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 9 Aug 2014 16:05:42 +0000 (17:05 +0100)
commitf187372f0a9289bcece892864175e4ec7f032b54
treec53509cd4dc55e8b60f93507259c3811c4ff7c91
parent1b69122810462cff569eb0929230961aa356bae0
sasl_sspi: Fixed SPN not being converted to wchar under Unicode builds

Curl_sasl_create_digest_md5_message() would simply cast the SPN variable
to a TCHAR when calling InitializeSecurityContext(). This meant that,
under Unicode builds, it would not be valid wide character string.

Updated to use the recently introduced Curl_sasl_build_spn() function
which performs the correct conversion for us.
lib/curl_sasl_sspi.c