diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-04 18:49:35 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-05 18:42:20 +0300 |
commit | f069ee365d4cedb9854924ab2f6b96476b64319f (patch) | |
tree | 0efa1a26e7848d6ee3a97fc697e2b0b492828e37 /src/testcurl/https/tls_test_common.c | |
parent | 0be4e8c2a74bc70683aff1f8af9f225d2090d0c2 (diff) | |
download | libmicrohttpd-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/tls_test_common.c')
-rw-r--r-- | src/testcurl/https/tls_test_common.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index 70606e67..63a79f59 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c | |||
@@ -84,8 +84,9 @@ test_daemon_get (void *cls, | |||
84 | /* TLS options */ | 84 | /* TLS options */ |
85 | if ((CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSLVERSION, | 85 | if ((CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSLVERSION, |
86 | proto_version))) || | 86 | proto_version))) || |
87 | (CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, | 87 | ((NULL != cipher_suite) && |
88 | cipher_suite))) || | 88 | (CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, |
89 | cipher_suite)))) || | ||
89 | 90 | ||
90 | /* perform peer authentication */ | 91 | /* perform peer authentication */ |
91 | /* TODO merge into send_curl_req */ | 92 | /* TODO merge into send_curl_req */ |
@@ -280,8 +281,9 @@ send_curl_req (char *url, | |||
280 | /* TLS options */ | 281 | /* TLS options */ |
281 | if ((CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSLVERSION, | 282 | if ((CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSLVERSION, |
282 | proto_version))) || | 283 | proto_version))) || |
283 | (CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, | 284 | ((NULL != cipher_suite) && |
284 | cipher_suite))) || | 285 | (CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, |
286 | cipher_suite)))) || | ||
285 | /* currently skip any peer authentication */ | 287 | /* currently skip any peer authentication */ |
286 | (CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L))) || | 288 | (CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L))) || |
287 | (CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L)))) | 289 | (CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L)))) |