ntlm: Renamed SSPI based input token variables
Code cleanup to try and synchronise code between the different SSPI based authentication mechanisms.
This commit is contained in:
Родитель
c18329cef6
Коммит
df97ab3e5f
|
@ -297,8 +297,8 @@ CURLcode Curl_ntlm_decode_type2_message(struct SessionHandle *data,
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_SSPI
|
#ifdef USE_WINDOWS_SSPI
|
||||||
ntlm->type_2 = buffer;
|
ntlm->input_token = buffer;
|
||||||
ntlm->n_type_2 = curlx_uztoul(size);
|
ntlm->input_token_len = size;
|
||||||
#else
|
#else
|
||||||
ntlm->flags = 0;
|
ntlm->flags = 0;
|
||||||
|
|
||||||
|
@ -341,7 +341,7 @@ CURLcode Curl_ntlm_decode_type2_message(struct SessionHandle *data,
|
||||||
#ifdef USE_WINDOWS_SSPI
|
#ifdef USE_WINDOWS_SSPI
|
||||||
void Curl_ntlm_sspi_cleanup(struct ntlmdata *ntlm)
|
void Curl_ntlm_sspi_cleanup(struct ntlmdata *ntlm)
|
||||||
{
|
{
|
||||||
Curl_safefree(ntlm->type_2);
|
Curl_safefree(ntlm->input_token);
|
||||||
|
|
||||||
if(ntlm->has_handles) {
|
if(ntlm->has_handles) {
|
||||||
s_pSecFn->DeleteSecurityContext(&ntlm->c_handle);
|
s_pSecFn->DeleteSecurityContext(&ntlm->c_handle);
|
||||||
|
@ -640,8 +640,8 @@ CURLcode Curl_ntlm_create_type3_message(struct SessionHandle *data,
|
||||||
type_2_desc.cBuffers = 1;
|
type_2_desc.cBuffers = 1;
|
||||||
type_2_desc.pBuffers = &type_2_buf;
|
type_2_desc.pBuffers = &type_2_buf;
|
||||||
type_2_buf.BufferType = SECBUFFER_TOKEN;
|
type_2_buf.BufferType = SECBUFFER_TOKEN;
|
||||||
type_2_buf.pvBuffer = ntlm->type_2;
|
type_2_buf.pvBuffer = ntlm->input_token;
|
||||||
type_2_buf.cbBuffer = ntlm->n_type_2;
|
type_2_buf.cbBuffer = curlx_uztoul(ntlm->input_token_len);
|
||||||
|
|
||||||
/* Setup the type-3 "output" security buffer */
|
/* Setup the type-3 "output" security buffer */
|
||||||
type_3_desc.ulVersion = SECBUFFER_VERSION;
|
type_3_desc.ulVersion = SECBUFFER_VERSION;
|
||||||
|
|
|
@ -442,8 +442,8 @@ struct ntlmdata {
|
||||||
size_t max_token_length;
|
size_t max_token_length;
|
||||||
BYTE *output_token;
|
BYTE *output_token;
|
||||||
int has_handles;
|
int has_handles;
|
||||||
BYTE *type_2;
|
BYTE *input_token;
|
||||||
unsigned long n_type_2;
|
size_t input_token_len;
|
||||||
#else
|
#else
|
||||||
unsigned int flags;
|
unsigned int flags;
|
||||||
unsigned char nonce[8];
|
unsigned char nonce[8];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче