1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

ntlm: Use a timestamp of 01/01/1970 for the test suite

This commit is contained in:
Steve Holme 2014-01-26 14:20:55 +00:00
parent 914b60c827
commit 2319221c83

View File

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