diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-11-28 02:22:40 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-11-30 13:57:46 +0100 |
commit | aae235b6ba92662a6fb7b459614f7ee2e290ae17 (patch) | |
tree | cfa956fc7a505f4d79336a6a00a8349aba611fb1 /tests/data/test2066 | |
parent | 6ad053060d213ef356d3f3943784620b4deea05a (diff) | |
download | curl-aae235b6ba92662a6fb7b459614f7ee2e290ae17.tar.gz |
digest: compute user:realm:pass digest w/o userhash
https://datatracker.ietf.org/doc/html/rfc7616#section-3.4.4
... the client MUST calculate a hash of the username after
any other hash calculation ...
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
Closes #8066
Diffstat (limited to 'tests/data/test2066')
-rw-r--r-- | tests/data/test2066 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/data/test2066 b/tests/data/test2066 index 1f8d1982d..4352afaf3 100644 --- a/tests/data/test2066 +++ b/tests/data/test2066 @@ -11,7 +11,7 @@ HTTP Digest auth <data> HTTP/1.1 401 Authorization Required
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
-WWW-Authenticate: Digest realm="testrealm", nonce="2053604145", algorithm="SHA-512-256", userhash=true
+WWW-Authenticate: Digest realm="testrealm", nonce="2053604145", algorithm="SHA-256", userhash=true
Content-Type: text/html; charset=iso-8859-1
Content-Length: 26
@@ -32,7 +32,7 @@ This is not the real page either <datacheck> HTTP/1.1 401 Authorization Required
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
-WWW-Authenticate: Digest realm="testrealm", nonce="2053604145", algorithm="SHA-512-256", userhash=true
+WWW-Authenticate: Digest realm="testrealm", nonce="2053604145", algorithm="SHA-256", userhash=true
Content-Type: text/html; charset=iso-8859-1
Content-Length: 26
@@ -56,7 +56,7 @@ http crypto </features> <name> -HTTP with RFC7616 Digest authorization with bad password, SHA-512-256 and userhash=true +HTTP with RFC7616 Digest authorization with bad password, SHA-256 and userhash=true </name> <command> http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:test2pass --digest @@ -73,7 +73,7 @@ Accept: */* GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
-Authorization: Digest username="75af8a3500f771e58a52093a25e7905d6e428a511285c12ea1420c73078dfd61", realm="testrealm", nonce="2053604145", uri="/%TESTNUMBER", response="a2e2ae589f575fb132991d6f550ef14bf7ef697d2fef1242d2498f07eafc77dc", algorithm=SHA-512-256, userhash=true
+Authorization: Digest username="75af8a3500f771e58a52093a25e7905d6e428a511285c12ea1420c73078dfd61", realm="testrealm", nonce="2053604145", uri="/%TESTNUMBER", response="374a35326cc09e7d1ec3165aee9de01cae46daac33d8999aa1f483fa7882b86c", algorithm=SHA-256, userhash=true
User-Agent: curl/%VERSION
Accept: */*
|