aboutsummaryrefslogtreecommitdiff
path: root/lib/http_negotiate_sspi.c
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2011-01-14 12:39:54 +0100
committerGuenter Knauf <lists@gknw.net>2011-01-14 12:39:54 +0100
commit8fa7b8cb9b4af710a69f3810b0746691a60317c4 (patch)
treeeef87f5cc209c62754c1cab12bc60f1e141cbc47 /lib/http_negotiate_sspi.c
parentfd6b4b3e9b2e36443f34dcc9055e30d3755f48ba (diff)
Added casts to silent gcc warnings.
Diffstat (limited to 'lib/http_negotiate_sspi.c')
-rw-r--r--lib/http_negotiate_sspi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c
index 39d6aefba..53459b68b 100644
--- a/lib/http_negotiate_sspi.c
+++ b/lib/http_negotiate_sspi.c
@@ -135,7 +135,8 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
if (!neg_ctx->max_token_length) {
PSecPkgInfo SecurityPackage;
- ret = s_pSecFn->QuerySecurityPackageInfo("Negotiate", &SecurityPackage);
+ ret = s_pSecFn->QuerySecurityPackageInfo((SEC_CHAR *)"Negotiate",
+ &SecurityPackage);
if (ret != SEC_E_OK)
return -1;
@@ -174,7 +175,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
return -1;
neg_ctx->status =
- s_pSecFn->AcquireCredentialsHandle(NULL, "Negotiate",
+ s_pSecFn->AcquireCredentialsHandle(NULL, (SEC_CHAR *)"Negotiate",
SECPKG_CRED_OUTBOUND, NULL, NULL,
NULL, NULL, neg_ctx->credentials,
&lifetime);
@@ -242,7 +243,7 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy)
char *userp;
len = Curl_base64_encode(conn->data,
- neg_ctx->output_token,
+ (const char*)neg_ctx->output_token,
neg_ctx->output_token_length,
&encoded);