mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 07:38:49 -05:00
curl_ntlm_core.c: use the limits.h's SIZE_T_MAX if provided
This commit is contained in:
parent
59657f53f9
commit
014887c50a
@ -646,11 +646,14 @@ CURLcode Curl_hmac_md5(const unsigned char *key, unsigned int keylen,
|
|||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef SIZE_T_MAX
|
||||||
|
/* some limits.h headers have this defined, some don't */
|
||||||
#if defined(SIZEOF_SIZE_T) && (SIZEOF_SIZE_T > 4)
|
#if defined(SIZEOF_SIZE_T) && (SIZEOF_SIZE_T > 4)
|
||||||
#define SIZE_T_MAX 18446744073709551615U
|
#define SIZE_T_MAX 18446744073709551615U
|
||||||
#else
|
#else
|
||||||
#define SIZE_T_MAX 4294967295U
|
#define SIZE_T_MAX 4294967295U
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This creates the NTLMv2 hash by using NTLM hash as the key and Unicode
|
/* This creates the NTLMv2 hash by using NTLM hash as the key and Unicode
|
||||||
* (uppercase UserName + Domain) as the data
|
* (uppercase UserName + Domain) as the data
|
||||||
|
Loading…
Reference in New Issue
Block a user