aboutsummaryrefslogtreecommitdiff
path: root/lib/http_negotiate_sspi.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-10-26 14:36:05 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-10-26 14:43:02 +0000
commitd91d21f05bb2250be03bf0bf1407f0044f6368a3 (patch)
tree7458fc196c7a6b3dd1ada4fad8d875ed83cbd3df /lib/http_negotiate_sspi.c
parentc2c68057975de6d6fbf506d1a664b03d63eef82b (diff)
sspi: Renamed max token length variables
Code cleanup to try and synchronise code between the different SSPI based authentication mechanisms.
Diffstat (limited to 'lib/http_negotiate_sspi.c')
-rw-r--r--lib/http_negotiate_sspi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c
index c260bc345..fd0f81781 100644
--- a/lib/http_negotiate_sspi.c
+++ b/lib/http_negotiate_sspi.c
@@ -113,8 +113,8 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
/* Allocate input and output buffers according to the max token size
as indicated by the security package */
- neg_ctx->max_token_length = SecurityPackage->cbMaxToken;
- neg_ctx->output_token = malloc(neg_ctx->max_token_length);
+ neg_ctx->token_max = SecurityPackage->cbMaxToken;
+ neg_ctx->output_token = malloc(neg_ctx->token_max);
s_pSecFn->FreeContextBuffer(SecurityPackage);
}
@@ -176,7 +176,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
out_buff_desc.pBuffers = &out_sec_buff;
out_sec_buff.BufferType = SECBUFFER_TOKEN;
out_sec_buff.pvBuffer = neg_ctx->output_token;
- out_sec_buff.cbBuffer = curlx_uztoul(neg_ctx->max_token_length);
+ out_sec_buff.cbBuffer = curlx_uztoul(neg_ctx->token_max);
/* Setup the "input" security buffer if present */
if(input_token) {
@@ -270,7 +270,7 @@ static void cleanup(struct negotiatedata *neg_ctx)
neg_ctx->credentials = NULL;
}
- neg_ctx->max_token_length = 0;
+ neg_ctx->token_max = 0;
Curl_safefree(neg_ctx->output_token);
Curl_safefree(neg_ctx->server_name);