tests: Added POP3 DIGEST-MD5 authentication test

This commit is contained in:
Steve Holme
2013-10-23 18:29:29 +01:00
parent a3da0a96e3
commit 1be69159f3
3 changed files with 63 additions and 1 deletions

View File

@@ -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);