/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test907
65 строк
1 KB
Daniel Stenberg
digest: pass in the user name quoted (as well)
17 мар 2026, 00:43
Не верифицирован
17 мар 2026, 00:43
3e8df37
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> SMTP SASL SASL AUTH DIGEST-MD5 RFC2831 RFC4954 </keywords> </info> # Server-side <reply> <servercmd> AUTH DIGEST-MD5 REPLY AUTH 334 %b64[realm="cu\"rl",nonce="5300d17a1d695bd411e4cdf96f9548c23ced6175",algorithm=md5-sess,qop="auth"]b64% REPLY %b64[username="us\"er",realm="cu\"rl",nonce="5300d17a1d695bd411e4cdf96f9548c23ced6175",cnonce="34333231353332313633323137333231",nc="00000001",digest-uri="smtp/127.0.0.1",response=53d3347e1b559d23be78934ae4a78488,qop=auth]b64% 334 %b64[rspauth=9ea859cb9d90c37ca30d49d35378630c]b64% REPLY 235 Authenticated </servercmd> </reply> # Client-side <client> <server> smtp </server> <features> !SSPI Debug crypto digest </features> <setenv> CURL_ENTROPY=12345678 </setenv> <name> SMTP DIGEST-MD5 authentication </name> <stdin crlf="yes"> mail body </stdin> <command> smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u "us\"er:secret" -T - </command> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="yes"> EHLO %TESTNUMBER AUTH DIGEST-MD5 %b64[username="us\"er",realm="cu\"rl",nonce="5300d17a1d695bd411e4cdf96f9548c23ced6175",cnonce="34333231353332313633323137333231",nc="00000001",digest-uri="smtp/127.0.0.1",response=53d3347e1b559d23be78934ae4a78488,qop=auth]b64% MAIL FROM:%LTsender@example.com%GT RCPT TO:%LTrecipient@example.com%GT DATA QUIT </protocol> <upload crlf="yes"> mail body . </upload> </verify> </testcase>