Commit 2319221c authored by Steve Holme's avatar Steve Holme
Browse files

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

parent 914b60c8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;