summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-10-08 12:30:22 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-10-08 12:31:06 +0200
commit8256b44e5a219f27783a248faa6e286c71d6f6ce (patch)
tree954862532bad0c480c9b6a7fd99e92cde4f0b611
parentda2d3b58052e5dd4bb0902189d7c1952b3036856 (diff)
downloadcurl-8256b44e5a219f27783a248faa6e286c71d6f6ce.tar.gz
ntlm: get rid of unconditional use of long long
... since some compilers don't have it and instead use other types, such as __int64. Reported by: gkinseyhpw Closes #478
-rw-r--r--lib/curl_ntlm_core.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c
index b72a8dc13..aa976e72d 100644
--- a/lib/curl_ntlm_core.c
+++ b/lib/curl_ntlm_core.c
@@ -664,21 +664,18 @@ CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash,
unsigned int len = 0;
unsigned char *ptr = NULL;
unsigned char hmac_output[NTLM_HMAC_MD5_LEN];
-#if defined(HAVE_LONGLONG)
- long long tw;
-#else
- __int64 tw;
-#endif
+ curl_off_t tw;
+
CURLcode result = CURLE_OK;
/* Calculate the timestamp */
#ifdef DEBUGBUILD
char *force_timestamp = getenv("CURL_FORCETIME");
if(force_timestamp)
- tw = 11644473600ULL * 10000000ULL;
+ tw = (curl_off_t)11644473600 * 10000000;
else
#endif
- tw = ((long long)time(NULL) + 11644473600ULL) * 10000000ULL;
+ tw = ((curl_off_t)time(NULL) + 11644473600) * 10000000;
/* Calculate the response len */
len = NTLM_HMAC_MD5_LEN + NTLMv2_BLOB_LEN;