mirror of
https://github.com/curl/curl.git
synced 2026-08-25 09:13:31 +03:00
parent
da97316596
commit
d6ff35b5a5
9 changed files with 73 additions and 40 deletions
|
|
@ -666,8 +666,8 @@ static CURLcode auth_create_digest_http_message(
|
|||
struct digestdata *digest,
|
||||
char **outptr, size_t *outlen,
|
||||
void (*convert_to_ascii)(unsigned char *, unsigned char *),
|
||||
void (*hash)(unsigned char *, const unsigned char *,
|
||||
const size_t))
|
||||
CURLcode (*hash)(unsigned char *, const unsigned char *,
|
||||
const size_t))
|
||||
{
|
||||
CURLcode result;
|
||||
unsigned char hashbuf[32]; /* 32 bytes/256 bits */
|
||||
|
|
|
|||
|
|
@ -603,7 +603,9 @@ CURLcode Curl_auth_create_ntlm_type3_message(struct Curl_easy *data,
|
|||
memcpy(tmp, &ntlm->nonce[0], 8);
|
||||
memcpy(tmp + 8, entropy, 8);
|
||||
|
||||
Curl_md5it(md5sum, tmp, 16);
|
||||
result = Curl_md5it(md5sum, tmp, 16);
|
||||
if(result)
|
||||
return result;
|
||||
|
||||
/* We shall only use the first 8 bytes of md5sum, but the des code in
|
||||
Curl_ntlm_core_lm_resp only encrypt the first 8 bytes */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue