[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 03/03: test_digestauth2: supported old libcurl versions
From: |
gnunet |
Subject: |
[libmicrohttpd] 03/03: test_digestauth2: supported old libcurl versions |
Date: |
Tue, 30 Jan 2024 17:33:31 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 218f32f44989519928375d81e2c98ea3b3618fbd
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.