gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 112/116: curl_ntlm_core.c: use the limits.h's SIZE_


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 112/116: curl_ntlm_core.c: use the limits.h's SIZE_T_MAX if provided
Date: Tue, 05 Dec 2017 14:52:22 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 014887c50ab58bf35b1231dbfe11197fe41d59cc
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Nov 27 10:40:31 2017 +0100

    curl_ntlm_core.c: use the limits.h's SIZE_T_MAX if provided
---
 lib/curl_ntlm_core.c | 3 +++
 1 file changed, 3 insertions(+)

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

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]