mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
test_auth_parse: added more checks with unclose quotation for digest auth
This commit is contained in:
@@ -611,6 +611,72 @@ check_type (void)
|
||||
r += expect_result_type (1, "Digest foo=bar,=", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=bar, =", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
/* Unclosed quotation */
|
||||
r += expect_result_type (1, "Digest nc=\"", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\"abc", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\" ", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\"abc ", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\" abc", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\" abc", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\"\\", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\"\\\"", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\" \\\"", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\"\\\" ", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\" \\\" ", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc=\"\\\"\\\"\\\"\\\"", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \"", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \"abc", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \" ", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \"abc ", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \" abc", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \" abc", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \"\\", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \"\\\"", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \" \\\"", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \"\\\" ", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \" \\\" ", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest nc= \"\\\"\\\"\\\"\\\"", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\"", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\"bar", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\" ", EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\"bar ", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\" bar", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\" bar", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo= \" bar", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\", bar", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\" bar,", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\"\\\"", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\" \\\"", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\"\\\" ", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\" \\\" ", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
r += expect_result_type (1, "Digest foo=\"\\\"\\\"\\\"\\\"", \
|
||||
EXPECT_TYPE_FOR_DIGEST_INVLD);
|
||||
/* Full set of parameters with semicolon inside */
|
||||
r += expect_result_type (1, "Digest username=\"test@example.com\", " \
|
||||
"realm=\"users@example.com\", nonce=\"32141232413abcde\", " \
|
||||
|
||||
Reference in New Issue
Block a user