commit 99c44002a9bebc6abe6223133e1b67434daf6763
parent aa49d6053c6d97cac0d10f9e39993962103dfb37
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 24 Jul 2022 13:17:24 +0300
tests_digestauth*: added workarounds for libcurl bug
Diffstat:
4 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c
@@ -216,7 +216,7 @@ _checkCURLE_OK_func (CURLcode code, const char *curlFunc,
/* Could be increased to facilitate debugging */
#define TIMEOUTS_VAL 5
-#define MHD_URI_BASE_PATH "/bar%20foo?key=value"
+#define MHD_URI_BASE_PATH "/bar%20foo%20without%20args"
#define PAGE \
"<html><head><title>libmicrohttpd demo</title></head><body>Access granted</body></html>"
diff --git a/src/testcurl/test_digestauth_concurrent.c b/src/testcurl/test_digestauth_concurrent.c
@@ -645,6 +645,15 @@ main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void) argc; (void) argv; /* Unused. Silent compiler warning. */
+#if (LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR == 62)
+ if (1)
+ {
+ fprintf (stderr, "libcurl version 7.62.x has bug in processing"
+ "URI with GET argements for Digest Auth.\n");
+ fprintf (stderr, "This test cannot be performed.\n");
+ exit (77);
+ }
+#endif /* libcurl version 7.62.x */
verbose = ! (has_param (argc, argv, "-q") ||
has_param (argc, argv, "--quiet") ||
diff --git a/src/testcurl/test_digestauth_sha256.c b/src/testcurl/test_digestauth_sha256.c
@@ -302,6 +302,15 @@ main (int argc, char *const *argv)
unsigned int errorCount = 0;
curl_version_info_data *d = curl_version_info (CURLVERSION_NOW);
(void) argc; (void) argv; /* Unused. Silent compiler warning. */
+#if (LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR == 62)
+ if (1)
+ {
+ fprintf (stderr, "libcurl version 7.62.x has bug in processing"
+ "URI with GET argements for Digest Auth.\n");
+ fprintf (stderr, "This test cannot be performed.\n");
+ exit (77);
+ }
+#endif /* libcurl version 7.62.x */
#ifdef CURL_VERSION_SSPI
if (0 != (d->features & CURL_VERSION_SSPI))
diff --git a/src/testcurl/test_digestauth_with_arguments.c b/src/testcurl/test_digestauth_with_arguments.c
@@ -279,6 +279,15 @@ main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
(void) argc; (void) argv; /* Unused. Silent compiler warning. */
+#if (LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR == 62)
+ if (1)
+ {
+ fprintf (stderr, "libcurl version 7.62.x has bug in processing"
+ "URI with GET argements for Digest Auth.\n");
+ fprintf (stderr, "This test cannot be performed.\n");
+ exit (77);
+ }
+#endif /* libcurl version 7.62.x */
#ifdef MHD_HTTPS_REQUIRE_GRYPT
#ifdef HAVE_GCRYPT_H