ntlm: Use a timestamp of 01/01/1970 for the test suite
authorSteve Holme <steve_holme@hotmail.com>
Sun, 26 Jan 2014 14:20:55 +0000 (14:20 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 29 Jan 2014 20:24:32 +0000 (20:24 +0000)
lib/curl_ntlm_core.c

index fda30b5..4d748f8 100644 (file)
@@ -554,7 +554,11 @@ CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash,
   CURLcode res = CURLE_OK;
 
   /* Calculate the timestamp */
+#if defined(DEBUGBUILD)
+  tw = 11644473600ULL * 10000000ULL;
+#else
   tw = ((long long)time(NULL) + 11644473600ULL) * 10000000ULL;
+#endif
 
   /* Calculate the response len */
   len = NTLM_HMAC_MD5_LEN + NTLMv2_BLOB_LEN;