-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Description
In lib/curl_ntlm_core.c there is a usage of the "long long" type outside of the ifdef HAVE_LONGLONG which means the code doesn't compile on platforms without "long long".
The following patch fixes it.
Index: curl_ntlm_core.c
--- curl_ntlm_core.c (revision 2295)
+++ curl_ntlm_core.c (revision 2296)
@@ -678,7 +678,11 @@
tw = 11644473600ULL * 10000000ULL;
else
#endif
+#if defined(HAVE_LONGLONG)
tw = ((long long)time(NULL) + 11644473600ULL) * 10000000ULL;
+#else
- tw = ((__int64)time(NULL) + 11644473600) * 10000000;
+#endif
/* Calculate the response len */
len = NTLM_HMAC_MD5_LEN + NTLMv2_BLOB_LEN;
Metadata
Metadata
Assignees
Labels
No labels