mirror of
https://github.com/curl/curl.git
synced 2026-08-26 21:54:19 +03:00
tests: Added POP3 DIGEST-MD5 authentication test
This commit is contained in:
parent
a3da0a96e3
commit
1be69159f3
3 changed files with 63 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue