aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-07-24 13:17:24 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-07-25 16:20:50 +0300
commit99c44002a9bebc6abe6223133e1b67434daf6763 (patch)
tree2611b086487a39a801bdc9a5c35f6f908c1a2005
parentaa49d6053c6d97cac0d10f9e39993962103dfb37 (diff)
downloadlibmicrohttpd-99c44002a9bebc6abe6223133e1b67434daf6763.tar.gz
libmicrohttpd-99c44002a9bebc6abe6223133e1b67434daf6763.zip
tests_digestauth*: added workarounds for libcurl bug
-rw-r--r--src/testcurl/test_digestauth.c2
-rw-r--r--src/testcurl/test_digestauth_concurrent.c9
-rw-r--r--src/testcurl/test_digestauth_sha256.c9
-rw-r--r--src/testcurl/test_digestauth_with_arguments.c9
4 files changed, 28 insertions, 1 deletions
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c
index 42ddd874..61b5b647 100644
--- a/src/testcurl/test_digestauth.c
+++ b/src/testcurl/test_digestauth.c
@@ -216,7 +216,7 @@ _checkCURLE_OK_func (CURLcode code, const char *curlFunc,
216/* Could be increased to facilitate debugging */ 216/* Could be increased to facilitate debugging */
217#define TIMEOUTS_VAL 5 217#define TIMEOUTS_VAL 5
218 218
219#define MHD_URI_BASE_PATH "/bar%20foo?key=value" 219#define MHD_URI_BASE_PATH "/bar%20foo%20without%20args"
220 220
221#define PAGE \ 221#define PAGE \
222 "<html><head><title>libmicrohttpd demo</title></head><body>Access granted</body></html>" 222 "<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
index 907f1eae..fed39add 100644
--- a/src/testcurl/test_digestauth_concurrent.c
+++ b/src/testcurl/test_digestauth_concurrent.c
@@ -645,6 +645,15 @@ main (int argc, char *const *argv)
645{ 645{
646 unsigned int errorCount = 0; 646 unsigned int errorCount = 0;
647 (void) argc; (void) argv; /* Unused. Silent compiler warning. */ 647 (void) argc; (void) argv; /* Unused. Silent compiler warning. */
648#if (LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR == 62)
649 if (1)
650 {
651 fprintf (stderr, "libcurl version 7.62.x has bug in processing"
652 "URI with GET argements for Digest Auth.\n");
653 fprintf (stderr, "This test cannot be performed.\n");
654 exit (77);
655 }
656#endif /* libcurl version 7.62.x */
648 657
649 verbose = ! (has_param (argc, argv, "-q") || 658 verbose = ! (has_param (argc, argv, "-q") ||
650 has_param (argc, argv, "--quiet") || 659 has_param (argc, argv, "--quiet") ||
diff --git a/src/testcurl/test_digestauth_sha256.c b/src/testcurl/test_digestauth_sha256.c
index dfaf1ec8..ffa1f4c7 100644
--- a/src/testcurl/test_digestauth_sha256.c
+++ b/src/testcurl/test_digestauth_sha256.c
@@ -302,6 +302,15 @@ main (int argc, char *const *argv)
302 unsigned int errorCount = 0; 302 unsigned int errorCount = 0;
303 curl_version_info_data *d = curl_version_info (CURLVERSION_NOW); 303 curl_version_info_data *d = curl_version_info (CURLVERSION_NOW);
304 (void) argc; (void) argv; /* Unused. Silent compiler warning. */ 304 (void) argc; (void) argv; /* Unused. Silent compiler warning. */
305#if (LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR == 62)
306 if (1)
307 {
308 fprintf (stderr, "libcurl version 7.62.x has bug in processing"
309 "URI with GET argements for Digest Auth.\n");
310 fprintf (stderr, "This test cannot be performed.\n");
311 exit (77);
312 }
313#endif /* libcurl version 7.62.x */
305 314
306#ifdef CURL_VERSION_SSPI 315#ifdef CURL_VERSION_SSPI
307 if (0 != (d->features & CURL_VERSION_SSPI)) 316 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
index a606f363..a5a8fb10 100644
--- 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)
279{ 279{
280 unsigned int errorCount = 0; 280 unsigned int errorCount = 0;
281 (void) argc; (void) argv; /* Unused. Silent compiler warning. */ 281 (void) argc; (void) argv; /* Unused. Silent compiler warning. */
282#if (LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR == 62)
283 if (1)
284 {
285 fprintf (stderr, "libcurl version 7.62.x has bug in processing"
286 "URI with GET argements for Digest Auth.\n");
287 fprintf (stderr, "This test cannot be performed.\n");
288 exit (77);
289 }
290#endif /* libcurl version 7.62.x */
282 291
283#ifdef MHD_HTTPS_REQUIRE_GRYPT 292#ifdef MHD_HTTPS_REQUIRE_GRYPT
284#ifdef HAVE_GCRYPT_H 293#ifdef HAVE_GCRYPT_H