From e0d8708b33bf021d5059ae7d481b5fab55a1661e Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Fri, 29 Dec 2023 16:56:12 +0300 Subject: tests: added setting of DAuth max nc value by daemon option --- src/testcurl/test_digestauth.c | 1 + src/testcurl/test_digestauth_concurrent.c | 1 + src/testcurl/test_digestauth_sha256.c | 1 + src/testcurl/test_digestauth_with_arguments.c | 1 + 4 files changed, 4 insertions(+) (limited to 'src/testcurl') diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c index 386b66a2..4fe9b847 100644 --- 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 index 87939a77..0e71ca39 100644 --- 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 index 26121ace..be879334 100644 --- 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 index ba9c45ee..280979c7 100644 --- 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; -- cgit v1.2.3