[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 04/06: test_auth_parse: added testing of 'userhash' para
From: |
gnunet |
Subject: |
[libmicrohttpd] 04/06: test_auth_parse: added testing of 'userhash' parameter parsing |
Date: |
Tue, 09 Aug 2022 20:27:15 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 20001736f8970e3fdf0e8dc6018bfe2cfdeec950
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Aug 9 19:12:28 2022 +0300
test_auth_parse: added testing of 'userhash' parameter parsing
---
src/microhttpd/test_auth_parse.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/src/microhttpd/test_auth_parse.c b/src/microhttpd/test_auth_parse.c
index b65909bb..baa93702 100644
--- a/src/microhttpd/test_auth_parse.c
+++ b/src/microhttpd/test_auth_parse.c
@@ -1064,6 +1064,29 @@ check_digest (void)
r += expect_digest ("Digest nc=\"1\\;\", ", NULL, NULL, NULL, NULL, NULL, \
NULL, NULL, NULL, NULL, "1\\;", 0);
+ r += expect_digest ("Digest userhash=false", NULL, NULL, NULL, NULL, NULL, \
+ NULL, NULL, NULL, NULL, NULL, 0);
+ r += expect_digest ("Digest userhash=\"false\"", NULL, NULL, NULL, NULL,
NULL, \
+ NULL, NULL, NULL, NULL, NULL, 0);
+ r += expect_digest ("Digest userhash=foo", NULL, NULL, NULL, NULL, NULL, \
+ NULL, NULL, NULL, NULL, NULL, 0);
+ r += expect_digest ("Digest userhash=true", NULL, NULL, NULL, NULL, NULL, \
+ NULL, NULL, NULL, NULL, NULL, 1);
+ r += expect_digest ("Digest userhash=\"true\"", NULL, NULL, NULL, NULL,
NULL, \
+ NULL, NULL, NULL, NULL, NULL, 1);
+ r += expect_digest ("Digest userhash=\"\\t\\r\\u\\e\"", NULL, NULL, NULL, \
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1);
+ r += expect_digest ("Digest userhash=TRUE", NULL, NULL, NULL, NULL, NULL, \
+ NULL, NULL, NULL, NULL, NULL, 1);
+ r += expect_digest ("Digest userhash=True", NULL, NULL, NULL, NULL, NULL, \
+ NULL, NULL, NULL, NULL, NULL, 1);
+ r += expect_digest ("Digest userhash = true", NULL, NULL, NULL, NULL, \
+ NULL, NULL, NULL, NULL, NULL, NULL, 1);
+ r += expect_digest ("Digest userhash=True2", NULL, NULL, NULL, NULL, NULL, \
+ NULL, NULL, NULL, NULL, NULL, 0);
+ r += expect_digest ("Digest userhash=\" true\"", NULL, NULL, NULL, NULL, \
+ NULL, NULL, NULL, NULL, NULL, NULL, 0);
+
r += expect_digest ("Digest username=\"test@example.com\", " \
"realm=\"users@example.com\",
nonce=\"32141232413abcde\", " \
"uri=\"/example\", qop=auth, nc=00000001,
cnonce=\"0a4f113b\", " \
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (bb33e458 -> 9a18a4f8), gnunet, 2022/08/09
- [libmicrohttpd] 04/06: test_auth_parse: added testing of 'userhash' parameter parsing,
gnunet <=
- [libmicrohttpd] 01/06: Internal refactoring: moved all request-related members to separate structure, gnunet, 2022/08/09
- [libmicrohttpd] 02/06: Internal refactoring: moved all reply-related members to separate structure, gnunet, 2022/08/09
- [libmicrohttpd] 06/06: test_auth_parse: added check of two auths types parsing in one request, gnunet, 2022/08/09
- [libmicrohttpd] 05/06: digestauth: limit nonce-count to uint32_t, gnunet, 2022/08/09
- [libmicrohttpd] 03/06: gen_auth: added support for two authorization headers in request, gnunet, 2022/08/09