mirror of
https://github.com/curl/curl.git
synced 2025-09-21 11:32:41 +03:00
parent
88702ebb31
commit
b6baa108fa
|
@ -418,6 +418,7 @@ CURLcode Curl_sasl_create_digest_http_message(struct SessionHandle *data,
|
||||||
SECURITY_STATUS status;
|
SECURITY_STATUS status;
|
||||||
unsigned long attrs;
|
unsigned long attrs;
|
||||||
TimeStamp expiry; /* For Windows 9x compatibility of SSPI calls */
|
TimeStamp expiry; /* For Windows 9x compatibility of SSPI calls */
|
||||||
|
TCHAR *spn;
|
||||||
|
|
||||||
(void) data;
|
(void) data;
|
||||||
|
|
||||||
|
@ -489,12 +490,20 @@ CURLcode Curl_sasl_create_digest_http_message(struct SessionHandle *data,
|
||||||
resp_buf.pvBuffer = output_token;
|
resp_buf.pvBuffer = output_token;
|
||||||
resp_buf.cbBuffer = curlx_uztoul(token_max);
|
resp_buf.cbBuffer = curlx_uztoul(token_max);
|
||||||
|
|
||||||
|
spn = Curl_convert_UTF8_to_tchar((char *) uripath);
|
||||||
|
if(!spn) {
|
||||||
|
free(output_token);
|
||||||
|
|
||||||
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
}
|
||||||
|
|
||||||
/* Generate our reponse message */
|
/* Generate our reponse message */
|
||||||
status = s_pSecFn->InitializeSecurityContext(&credentials, NULL,
|
status = s_pSecFn->InitializeSecurityContext(&credentials, NULL,
|
||||||
(TCHAR *) uripath,
|
spn,
|
||||||
ISC_REQ_USE_HTTP_STYLE, 0, 0,
|
ISC_REQ_USE_HTTP_STYLE, 0, 0,
|
||||||
&chlg_desc, 0, &context,
|
&chlg_desc, 0, &context,
|
||||||
&resp_desc, &attrs, &expiry);
|
&resp_desc, &attrs, &expiry);
|
||||||
|
Curl_unicodefree(spn);
|
||||||
|
|
||||||
if(status == SEC_I_COMPLETE_NEEDED ||
|
if(status == SEC_I_COMPLETE_NEEDED ||
|
||||||
status == SEC_I_COMPLETE_AND_CONTINUE)
|
status == SEC_I_COMPLETE_AND_CONTINUE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user