diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-10-23 18:29:29 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-10-23 18:30:00 +0100 |
commit | 1be69159f3c6635ee4fb0333c5bc6563830cf156 (patch) | |
tree | b9fe002312321a5a649182391cfb8bbe81917955 /lib | |
parent | a3da0a96e383225b11d5a2de02d7217b33aa76da (diff) |
tests: Added POP3 DIGEST-MD5 authentication test
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl_sasl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c index 9a0bc0fa8..f097fca25 100644 --- a/lib/curl_sasl.c +++ b/lib/curl_sasl.c @@ -324,9 +324,11 @@ CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data, if(strcmp(alg, "md5-sess") != 0) return CURLE_LOGIN_DENIED; +#ifndef DEBUGBUILD /* Generate 64 bits of random data */ for(i = 0; i < 8; i++) cnonce[i] = table16[Curl_rand(data)%16]; +#endif /* So far so good, now calculate A1 and H(A1) according to RFC 2831 */ ctxt = Curl_MD5_init(Curl_DIGEST_MD5); |