diff options
author | Yang Tse <yangsita@gmail.com> | 2012-06-16 19:20:50 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-06-16 19:20:50 +0200 |
commit | d56e8bcc8aeed07d73a3047c5a5be8bb9df53e0b (patch) | |
tree | 367df2a1d0f1149e7a4bafd58e0629d7909b6d4d /lib/http_negotiate_sspi.c | |
parent | 220776de6b06c3350fac5fe78d8a2f68e894fe90 (diff) |
Win32: downplay MS bazillion type synonyms game
Avoid usage of some MS type synonyms to allow compilation with
compiler headers that don't define these, using simpler synonyms.
Diffstat (limited to 'lib/http_negotiate_sspi.c')
-rw-r--r-- | lib/http_negotiate_sspi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c index 7c8235518..f5e1fed73 100644 --- a/lib/http_negotiate_sspi.c +++ b/lib/http_negotiate_sspi.c @@ -89,9 +89,9 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy, SecBuffer out_sec_buff; SecBufferDesc in_buff_desc; SecBuffer in_sec_buff; - ULONG context_attributes; + unsigned long context_attributes; TimeStamp lifetime; - LPTSTR sname; + TCHAR *sname; int ret; size_t len = 0, input_token_len = 0; bool gss = FALSE; @@ -138,7 +138,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy, if(!neg_ctx->output_token) { PSecPkgInfo SecurityPackage; - ret = s_pSecFn->QuerySecurityPackageInfo((SECURITY_PSTR) TEXT("Negotiate"), + ret = s_pSecFn->QuerySecurityPackageInfo((TCHAR *) TEXT("Negotiate"), &SecurityPackage); if(ret != SEC_E_OK) return -1; @@ -168,7 +168,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy, neg_ctx->status = s_pSecFn->AcquireCredentialsHandle(NULL, - (SECURITY_PSTR) TEXT("Negotiate"), + (TCHAR *) TEXT("Negotiate"), SECPKG_CRED_OUTBOUND, NULL, NULL, NULL, NULL, neg_ctx->credentials, &lifetime); |