diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-01-30 11:38:30 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-01-30 11:39:08 +0000 |
commit | 0e113070579535c08ef734b319df08cdfbefbba6 (patch) | |
tree | 1008e2d76eb1142a1672f16ac47885cd6dd121d1 /lib | |
parent | 0f23662af74beceeddbbd8dc324b123eb90ca76e (diff) |
ntlm: Use static client nonce for the test suite
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl_ntlm_msgs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c index 00f69a551..050ffe25d 100644 --- a/lib/curl_ntlm_msgs.c +++ b/lib/curl_ntlm_msgs.c @@ -763,8 +763,13 @@ CURLcode Curl_ntlm_create_type3_message(struct SessionHandle *data, unsigned char entropy[8]; unsigned char ntlmv2hash[0x18]; - /* Need to create 8 bytes random client nonce */ +#if defined(DEBUGBUILD) + /* Use static client nonce in debug (Test Suite) builds */ + memcpy(entropy, "12345678", sizeof(entropy)); +#else + /* Create an 8 byte random client nonce */ Curl_ssl_random(data, entropy, sizeof(entropy)); +#endif res = Curl_ntlm_core_mk_nt_hash(data, passwdp, ntbuffer); if(res) |