parent
b249592d29
commit
f1cd5004b0
@ -498,17 +498,14 @@ CURLcode Curl_ntlm_core_mk_nt_hash(struct Curl_easy *data,
|
|||||||
* network encoding not the host encoding.
|
* network encoding not the host encoding.
|
||||||
*/
|
*/
|
||||||
result = Curl_convert_to_network(data, (char *)pw, len * 2);
|
result = Curl_convert_to_network(data, (char *)pw, len * 2);
|
||||||
if(result)
|
if(!result) {
|
||||||
return result;
|
/* Create NT hashed password. */
|
||||||
|
Curl_md4it(ntbuffer, pw, 2 * len);
|
||||||
/* Create NT hashed password. */
|
memset(ntbuffer + 16, 0, 21 - 16);
|
||||||
Curl_md4it(ntbuffer, pw, 2 * len);
|
}
|
||||||
|
|
||||||
memset(ntbuffer + 16, 0, 21 - 16);
|
|
||||||
|
|
||||||
free(pw);
|
free(pw);
|
||||||
|
|
||||||
return CURLE_OK;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(USE_NTLM_V2) && !defined(USE_WINDOWS_SSPI)
|
#if defined(USE_NTLM_V2) && !defined(USE_WINDOWS_SSPI)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user