summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-11-27 10:40:31 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-11-27 10:40:31 +0100
commit014887c50ab58bf35b1231dbfe11197fe41d59cc (patch)
tree7820b412b02adee861f2140946e0582d0a20463e
parent59657f53f936ea5a69f9ae4a993a24854a197b4a (diff)
downloadcurl-014887c50ab58bf35b1231dbfe11197fe41d59cc.tar.gz
curl_ntlm_core.c: use the limits.h's SIZE_T_MAX if provided
-rw-r--r--lib/curl_ntlm_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c
index 43a290574..e8962769c 100644
--- a/lib/curl_ntlm_core.c
+++ b/lib/curl_ntlm_core.c
@@ -646,11 +646,14 @@ CURLcode Curl_hmac_md5(const unsigned char *key, unsigned int keylen,
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)
#define SIZE_T_MAX 18446744073709551615U
#else
#define SIZE_T_MAX 4294967295U
#endif
+#endif
/* This creates the NTLMv2 hash by using NTLM hash as the key and Unicode
* (uppercase UserName + Domain) as the data