diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-01-26 14:20:55 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-01-29 20:24:32 +0000 |
commit | 2319221c836b8d4cb1cc1f2d15784a9890421aa5 (patch) | |
tree | f63d1044da80878fd830f02bf2e8475f67079a7f /lib | |
parent | 914b60c8277c2e8dde17e30376f9c173ddf94619 (diff) |
ntlm: Use a timestamp of 01/01/1970 for the test suite
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl_ntlm_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c index fda30b581..4d748f828 100644 --- a/lib/curl_ntlm_core.c +++ b/lib/curl_ntlm_core.c @@ -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; |