aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_get_select.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-04 18:49:35 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-05 18:42:20 +0300
commitf069ee365d4cedb9854924ab2f6b96476b64319f (patch)
tree0efa1a26e7848d6ee3a97fc697e2b0b492828e37 /src/testcurl/https/test_https_get_select.c
parent0be4e8c2a74bc70683aff1f8af9f225d2090d0c2 (diff)
downloadlibmicrohttpd-f069ee365d4cedb9854924ab2f6b96476b64319f.tar.gz
libmicrohttpd-f069ee365d4cedb9854924ab2f6b96476b64319f.zip
testcurl/https: removed explicit cipher setting
Explicit ciphers are not required and not future-proof.
Diffstat (limited to 'src/testcurl/https/test_https_get_select.c')
-rw-r--r--src/testcurl/https/test_https_get_select.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/testcurl/https/test_https_get_select.c b/src/testcurl/https/test_https_get_select.c
index 4de66fe6..7149caf7 100644
--- a/src/testcurl/https/test_https_get_select.c
+++ b/src/testcurl/https/test_https_get_select.c
@@ -92,7 +92,6 @@ testExternalGet (unsigned int flags)
92 struct CURLMsg *msg; 92 struct CURLMsg *msg;
93 time_t start; 93 time_t start;
94 struct timeval tv; 94 struct timeval tv;
95 const char *aes256_sha = "AES256-SHA";
96 uint16_t port; 95 uint16_t port;
97 96
98 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) 97 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
@@ -122,9 +121,6 @@ testExternalGet (unsigned int flags)
122 port = dinfo->port; 121 port = dinfo->port;
123 } 122 }
124 123
125 if (curl_tls_is_nss ())
126 aes256_sha = "rsa_aes_256_sha";
127
128 c = curl_easy_init (); 124 c = curl_easy_init ();
129 curl_easy_setopt (c, CURLOPT_URL, "https://127.0.0.1/hello_world"); 125 curl_easy_setopt (c, CURLOPT_URL, "https://127.0.0.1/hello_world");
130 curl_easy_setopt (c, CURLOPT_PORT, (long) port); 126 curl_easy_setopt (c, CURLOPT_PORT, (long) port);
@@ -132,7 +128,6 @@ testExternalGet (unsigned int flags)
132 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 128 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
133 /* TLS options */ 129 /* TLS options */
134 curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); 130 curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
135 curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha);
136 curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L); 131 curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L);
137 curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L); 132 curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L);
138 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); 133 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);