Просмотр исходного кода

tests: added setting of DAuth max nc value by daemon option

Evgeny Grin (Karlson2k) 2 лет назад
Родитель
Сommit
e0d8708b33

+ 1 - 0
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;

+ 1 - 0
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;

+ 1 - 0
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;

+ 1 - 0
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;