[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 07/13: test_digestauth2: fixed order of the initial chec
From: |
gnunet |
Subject: |
[libmicrohttpd] 07/13: test_digestauth2: fixed order of the initial checks |
Date: |
Thu, 23 Nov 2023 11:49:10 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 6fde86c265e3beaf1a29a511ed4fafbec5fbd06a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Nov 21 13:42:18 2023 +0300
test_digestauth2: fixed order of the initial checks
This should improve reported warnings when test is skipped.
---
src/testcurl/test_digestauth2.c | 41 +++++++++++++++++++++--------------------
1 file changed, 21 insertions(+), 20 deletions(-)
diff --git a/src/testcurl/test_digestauth2.c b/src/testcurl/test_digestauth2.c
index ce2def62..e94f7b63 100644
--- a/src/testcurl/test_digestauth2.c
+++ b/src/testcurl/test_digestauth2.c
@@ -1532,6 +1532,27 @@ main (int argc, char *const *argv)
0xFF & (curl_info->version_num >> 0));
return 77;
}
+
+ if (test_sha256)
+ {
+ if (curl_sspi)
+ {
+ fprintf (stderr, "Windows SSPI API does not support SHA-256 digests.\n");
+ return 77;
+ }
+ else if (CURL_VERSION_BITS (7,57,0) > curl_info->version_num)
+ {
+ fprintf (stderr, "Required libcurl at least version 7.57.0 "
+ "to run this test with SHA-256.\n");
+ fprintf (stderr, "This libcurl version %u.%u.%u "
+ "does not support SHA-256.\n",
+ 0xFF & (curl_info->version_num >> 16),
+ 0xFF & (curl_info->version_num >> 8),
+ 0xFF & (curl_info->version_num >> 0));
+ return 77;
+ }
+ }
+
if (test_userhash)
{
if (curl_sspi)
@@ -1571,26 +1592,6 @@ main (int argc, char *const *argv)
else
curl_uses_usehash = 0;
- if (test_sha256)
- {
- if (curl_sspi)
- {
- fprintf (stderr, "Windows SSPI API does not support SHA-256 digests.\n");
- return 77;
- }
- else if (CURL_VERSION_BITS (7,57,0) > curl_info->version_num)
- {
- fprintf (stderr, "Required libcurl at least version 7.57.0 "
- "to run this test with SHA-256.\n");
- fprintf (stderr, "This libcurl version %u.%u.%u "
- "does not support SHA-256.\n",
- 0xFF & (curl_info->version_num >> 16),
- 0xFF & (curl_info->version_num >> 8),
- 0xFF & (curl_info->version_num >> 0));
- return 77;
- }
- }
-
test_global_init ();
errorCount += testDigestAuth ();
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (cd4d2f65 -> a19df909), gnunet, 2023/11/23
- [libmicrohttpd] 03/13: MHD_start_daemon(): moved daemon flags internal initialisation, gnunet, 2023/11/23
- [libmicrohttpd] 01/13: Added detection of more conditions to process the data without waiting, gnunet, 2023/11/23
- [libmicrohttpd] 04/13: MHD_start_daemon(): reject INTERNAL_POLLING_THREAD if threads are disabled, gnunet, 2023/11/23
- [libmicrohttpd] 02/13: MHD_quiesce_daemon(): fixed return value if already quiesced, gnunet, 2023/11/23
- [libmicrohttpd] 05/13: Moved user options counter to shorter its lifetime, gnunet, 2023/11/23
- [libmicrohttpd] 06/13: test_daemon: fixed to not skip if failed, gnunet, 2023/11/23
- [libmicrohttpd] 08/13: Improved daemon shutdown handling in external polling mode, gnunet, 2023/11/23
- [libmicrohttpd] 07/13: test_digestauth2: fixed order of the initial checks,
gnunet <=
- [libmicrohttpd] 09/13: Micro-optimisations for non-overridable FD_SETSIZE, gnunet, 2023/11/23
- [libmicrohttpd] 13/13: Officially support zero for MHD_OPTION_THREAD_POOL_SIZE, gnunet, 2023/11/23
- [libmicrohttpd] 10/13: Unified and simplified fd_set filling, gnunet, 2023/11/23
- [libmicrohttpd] 11/13: Added new daemon flag MHD_USE_NO_THREAD_SAFETY, gnunet, 2023/11/23
- [libmicrohttpd] 12/13: Tests: added use of MHD_USE_NO_THREAD_SAFETY flag, gnunet, 2023/11/23