diff options
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)))) |