]> granicus.if.org Git - curl/commitdiff
SSPI related code: Unicode support for WinCE - kill compiler warnings
authorYang Tse <yangsita@gmail.com>
Fri, 15 Jun 2012 19:50:57 +0000 (21:50 +0200)
committerYang Tse <yangsita@gmail.com>
Fri, 15 Jun 2012 19:50:57 +0000 (21:50 +0200)
lib/curl_ntlm_msgs.c
lib/http_negotiate_sspi.c
lib/socks_sspi.c

index 0fd34cb802a868e6821374f6c875d5f60c3d070c..b064553c2effe47665af2b95b1dcd6c29e01194d 100644 (file)
@@ -460,7 +460,8 @@ CURLcode Curl_ntlm_create_type1_message(const char *userp,
   else
     ntlm->p_identity = NULL;
 
-  status = s_pSecFn->AcquireCredentialsHandle(NULL, TEXT("NTLM"),
+  status = s_pSecFn->AcquireCredentialsHandle(NULL,
+                                              (SECURITY_PSTR) TEXT("NTLM"),
                                               SECPKG_CRED_OUTBOUND, NULL,
                                               ntlm->p_identity, NULL, NULL,
                                               &ntlm->handle, &tsDummy);
@@ -475,7 +476,7 @@ CURLcode Curl_ntlm_create_type1_message(const char *userp,
   buf.pvBuffer   = ntlmbuf;
 
   status = s_pSecFn->InitializeSecurityContext(&ntlm->handle, NULL,
-                                               TEXT(""),
+                                               (SECURITY_PSTR) TEXT(""),
                                                ISC_REQ_CONFIDENTIALITY |
                                                ISC_REQ_REPLAY_DETECT |
                                                ISC_REQ_CONNECTION,
@@ -651,7 +652,7 @@ CURLcode Curl_ntlm_create_type3_message(struct SessionHandle *data,
 
   status = s_pSecFn->InitializeSecurityContext(&ntlm->handle,
                                                &ntlm->c_handle,
-                                               TEXT(""),
+                                               (SECURITY_PSTR) TEXT(""),
                                                ISC_REQ_CONFIDENTIALITY |
                                                ISC_REQ_REPLAY_DETECT |
                                                ISC_REQ_CONNECTION,
index 59a270a0debedfd627d14d51c447d806365e9610..7c82355181f6e938881608ec10b10c187a2c38cd 100644 (file)
@@ -138,7 +138,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
 
   if(!neg_ctx->output_token) {
     PSecPkgInfo SecurityPackage;
-    ret = s_pSecFn->QuerySecurityPackageInfo(TEXT("Negotiate"),
+    ret = s_pSecFn->QuerySecurityPackageInfo((SECURITY_PSTR) TEXT("Negotiate"),
                                              &SecurityPackage);
     if(ret != SEC_E_OK)
       return -1;
@@ -167,7 +167,8 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
       return -1;
 
     neg_ctx->status =
-      s_pSecFn->AcquireCredentialsHandle(NULL, TEXT("Negotiate"),
+      s_pSecFn->AcquireCredentialsHandle(NULL,
+                                         (SECURITY_PSTR) TEXT("Negotiate"),
                                          SECPKG_CRED_OUTBOUND, NULL, NULL,
                                          NULL, NULL, neg_ctx->credentials,
                                          &lifetime);
index 8bbaef101df1141ae23e1c3ac289a854fdbe6c00..a1d82ea76f9b5a4fa566313337ec40b174478ec8 100644 (file)
@@ -141,7 +141,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
   cred_handle.dwUpper = 0;
 
   status = s_pSecFn->AcquireCredentialsHandle(NULL,
-                                              TEXT("Kerberos"),
+                                              (SECURITY_PSTR) TEXT("Kerberos"),
                                               SECPKG_CRED_OUTBOUND,
                                               NULL,
                                               NULL,