[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/06: Use HTTP/1.1 for all TLS tests
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/06: Use HTTP/1.1 for all TLS tests |
Date: |
Thu, 21 Apr 2022 12:40:43 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 166b572354c843c0efa84b9f0c866abf0d34497e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Apr 20 22:18:35 2022 +0300
Use HTTP/1.1 for all TLS tests
Nobody is using HTTP/1.0 with TLS
---
src/testcurl/https/test_empty_response.c | 1 +
src/testcurl/https/test_https_get_select.c | 2 +-
src/testcurl/https/test_https_sni.c | 2 +-
src/testcurl/https/tls_test_common.c | 4 ++--
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/testcurl/https/test_empty_response.c
b/src/testcurl/https/test_empty_response.c
index c2dcf300..f4cce216 100644
--- a/src/testcurl/https/test_empty_response.c
+++ b/src/testcurl/https/test_empty_response.c
@@ -241,6 +241,7 @@ main (int argc, char *const *argv)
unsigned int errorCount = 0;
(void) argc; /* Unused. Silent compiler warning. */
+ oneone = 1;
if (! testsuite_curl_global_init ())
return 99;
if (NULL == curl_version_info (CURLVERSION_NOW)->ssl_version)
diff --git a/src/testcurl/https/test_https_get_select.c
b/src/testcurl/https/test_https_get_select.c
index 65570aab..217c6bfa 100644
--- a/src/testcurl/https/test_https_get_select.c
+++ b/src/testcurl/https/test_https_get_select.c
@@ -268,7 +268,7 @@ main (int argc, char *const *argv)
unsigned int errorCount = 0;
(void) argc; /* Unused. Silent compiler warning. */
- oneone = 0;
+ oneone = 1;
if (! testsuite_curl_global_init ())
return 99;
if (NULL == curl_version_info (CURLVERSION_NOW)->ssl_version)
diff --git a/src/testcurl/https/test_https_sni.c
b/src/testcurl/https/test_https_sni.c
index 4e7c1677..1c813c22 100644
--- a/src/testcurl/https/test_https_sni.c
+++ b/src/testcurl/https/test_https_sni.c
@@ -204,7 +204,7 @@ do_get (const char *url, int port)
#endif
curl_easy_setopt (c, CURLOPT_URL, url);
curl_easy_setopt (c, CURLOPT_PORT, (long) port);
- curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
+ curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_easy_setopt (c, CURLOPT_TIMEOUT, 10L);
curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 10L);
curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer);
diff --git a/src/testcurl/https/tls_test_common.c
b/src/testcurl/https/tls_test_common.c
index 606ac7a3..36134ecc 100644
--- a/src/testcurl/https/tls_test_common.c
+++ b/src/testcurl/https/tls_test_common.c
@@ -95,7 +95,7 @@ test_daemon_get (void *cls,
#endif
if ((CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_URL, url))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_HTTP_VERSION,
- CURL_HTTP_VERSION_1_0))) ||
+ CURL_HTTP_VERSION_1_1))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_TIMEOUT, 10L))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 10L))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_WRITEFUNCTION,
@@ -280,7 +280,7 @@ send_curl_req (char *url,
#endif
if ((CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_URL, url))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_HTTP_VERSION,
- CURL_HTTP_VERSION_1_0))) ||
+ CURL_HTTP_VERSION_1_1))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_TIMEOUT, 60L))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 60L))) ||
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (4b6419b1 -> a3ce7049), gnunet, 2022/04/21
- [libmicrohttpd] 01/06: Updated .gitattributes, gnunet, 2022/04/21
- [libmicrohttpd] 02/06: Use HTTP/1.1 for all TLS tests,
gnunet <=
- [libmicrohttpd] 03/06: test_https_sni: use certificates with SAN fields, gnunet, 2022/04/21
- [libmicrohttpd] 06/06: test_https_sni: limit to libcrul with certain TLS backends., gnunet, 2022/04/21
- [libmicrohttpd] 04/06: Updated test TLS certificate in test and examples, gnunet, 2022/04/21
- [libmicrohttpd] 05/06: test_https_sni: use CA certificate, gnunet, 2022/04/21