[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 29/335: test_digestauth2: supported old libcurl versions
From: |
gnunet |
Subject: |
[libmicrohttpd] 29/335: test_digestauth2: supported old libcurl versions |
Date: |
Sat, 27 Jul 2024 21:58:45 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.
commit ad0468c1ed2d60e3b05de1bab584ec22818e9f1e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Jan 30 17:32:59 2024 +0100
test_digestauth2: supported old libcurl versions
---
src/testcurl/test_digestauth2.c | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/testcurl/test_digestauth2.c b/src/testcurl/test_digestauth2.c
index 2ec78e26..9566159d 100644
--- a/src/testcurl/test_digestauth2.c
+++ b/src/testcurl/test_digestauth2.c
@@ -568,7 +568,13 @@ ahc_echo (void *cls,
}
if (! test_rfc2069)
{
- if (10 >= dinfo->cnonce_len)
+ if (
+#if CURL_AT_LEAST_VERSION (7,37,1)
+ 10 >= dinfo->cnonce_len
+#else /* libcurl before 7.37.1 */
+ 8 > dinfo->cnonce_len
+#endif /* libcurl before 7.37.1 */
+ )
{
fprintf (stderr, "Unexpected small 'cnonce_len': %ld. ",
(long) dinfo->cnonce_len);
@@ -879,11 +885,10 @@ ahc_echo (void *cls,
if (NULL == response)
mhdErrorExitDesc ("Response creation failed");
res =
- MHD_queue_auth_required_response3 (connection, REALM_VAL, OPAQUE_VALUE,
- "/", response, 0,
- (enum MHD_DigestAuthMultiQOP) qop,
- (enum MHD_DigestAuthMultiAlgo3)
algo3,
- test_userhash, 0);
+ MHD_queue_auth_required_response3 (
+ connection, REALM_VAL, OPAQUE_VALUE, "/", response, 0,
+ (enum MHD_DigestAuthMultiQOP) qop,
+ (enum MHD_DigestAuthMultiAlgo3) algo3, test_userhash, 0);
if (MHD_YES != res)
mhdErrorExitDesc ("'MHD_queue_auth_required_response3()' failed");
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 22/335: Fixed and/or muted compiler warnings, (continued)
- [libmicrohttpd] 22/335: Fixed and/or muted compiler warnings, gnunet, 2024/07/27
- [libmicrohttpd] 26/335: Fuzz test: increased tests' timeout value, gnunet, 2024/07/27
- [libmicrohttpd] 48/335: ChangeLog: updated, gnunet, 2024/07/27
- [libmicrohttpd] 35/335: configure: sorted messages in final config summary, gnunet, 2024/07/27
- [libmicrohttpd] 37/335: Fixed grow buffer check on 32-bit platforms, gnunet, 2024/07/27
- [libmicrohttpd] 46/335: Unified handling of external hash function for MD5 and SHA-256, gnunet, 2024/07/27
- [libmicrohttpd] 41/335: Fixes for 32-bit platforms, gnunet, 2024/07/27
- [libmicrohttpd] 44/335: test_upgrade: adapted for macOS, gnunet, 2024/07/27
- [libmicrohttpd] 54/335: Fixed typo in NEWS file, gnunet, 2024/07/27
- [libmicrohttpd] 43/335: configure: removed old workaround, gnunet, 2024/07/27
- [libmicrohttpd] 29/335: test_digestauth2: supported old libcurl versions,
gnunet <=
- [libmicrohttpd] 42/335: Compiler warning fixes, gnunet, 2024/07/27
- [libmicrohttpd] 57/335: Fixed SHA-512/256 calculation for unrealistically large volumes, gnunet, 2024/07/27
- [libmicrohttpd] 59/335: microhttpd2.h edit, gnunet, 2024/07/27
- [libmicrohttpd] 55/335: Fixe NEWS one more time, gnunet, 2024/07/27
- [libmicrohttpd] 45/335: test_upgrade: disable now unused function, gnunet, 2024/07/27
- [libmicrohttpd] 49/335: W32 VS: updated MHD_config.h, gnunet, 2024/07/27
- [libmicrohttpd] 53/335: Released GNU libmicrohttpd 1.0.0, gnunet, 2024/07/27
- [libmicrohttpd] 52/335: W32: fixed compiler warning, gnunet, 2024/07/27
- [libmicrohttpd] 47/335: Updated copyright years, gnunet, 2024/07/27
- [libmicrohttpd] 51/335: W32 VS: simplified custom MHD_config.h, gnunet, 2024/07/27