commit e0d8708b33bf021d5059ae7d481b5fab55a1661e
parent ce1ea19549c8e96f43bfd4b007cb8573fbca5be5
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Fri, 29 Dec 2023 16:56:12 +0300
tests: added setting of DAuth max nc value by daemon option
Diffstat:
4 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c
@@ -454,6 +454,7 @@ testDigestAuth (void)
&ahc_echo, NULL,
MHD_OPTION_DIGEST_AUTH_RANDOM, sizeof (rnd), rnd,
MHD_OPTION_NONCE_NC_SIZE, 300,
+ MHD_OPTION_DIGEST_AUTH_DEFAULT_MAX_NC, (uint32_t) 999,
MHD_OPTION_END);
if (d == NULL)
return 1;
diff --git a/src/testcurl/test_digestauth_concurrent.c b/src/testcurl/test_digestauth_concurrent.c
@@ -591,6 +591,7 @@ testDigestAuth (void)
MHD_OPTION_NONCE_NC_SIZE, 300,
MHD_OPTION_THREAD_POOL_SIZE,
(unsigned int) (sizeof(workers) / sizeof(workers[0])),
+ MHD_OPTION_DIGEST_AUTH_DEFAULT_MAX_NC, (uint32_t) 999,
MHD_OPTION_END);
if (d == NULL)
return 1;
diff --git a/src/testcurl/test_digestauth_sha256.c b/src/testcurl/test_digestauth_sha256.c
@@ -244,6 +244,7 @@ testDigestAuth (void)
&ahc_echo, NULL,
MHD_OPTION_DIGEST_AUTH_RANDOM, sizeof (rnd), rnd,
MHD_OPTION_NONCE_NC_SIZE, 300,
+ MHD_OPTION_DIGEST_AUTH_DEFAULT_MAX_NC, (uint32_t) 999,
MHD_OPTION_END);
if (d == NULL)
return 1;
diff --git a/src/testcurl/test_digestauth_with_arguments.c b/src/testcurl/test_digestauth_with_arguments.c
@@ -225,6 +225,7 @@ testDigestAuth (void)
port, NULL, NULL, &ahc_echo, NULL,
MHD_OPTION_DIGEST_AUTH_RANDOM, sizeof (rnd), rnd,
MHD_OPTION_NONCE_NC_SIZE, 300,
+ MHD_OPTION_DIGEST_AUTH_DEFAULT_MAX_NC, (uint32_t) 999,
MHD_OPTION_END);
if (d == NULL)
return 1;