mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-26 04:09:30 +03:00
testcurl/https: removed explicit cipher setting
Explicit ciphers are not required and not future-proof.
This commit is contained in:
@@ -92,7 +92,6 @@ testExternalGet (unsigned int flags)
|
||||
struct CURLMsg *msg;
|
||||
time_t start;
|
||||
struct timeval tv;
|
||||
const char *aes256_sha = "AES256-SHA";
|
||||
uint16_t port;
|
||||
|
||||
if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
|
||||
@@ -122,9 +121,6 @@ testExternalGet (unsigned int flags)
|
||||
port = dinfo->port;
|
||||
}
|
||||
|
||||
if (curl_tls_is_nss ())
|
||||
aes256_sha = "rsa_aes_256_sha";
|
||||
|
||||
c = curl_easy_init ();
|
||||
curl_easy_setopt (c, CURLOPT_URL, "https://127.0.0.1/hello_world");
|
||||
curl_easy_setopt (c, CURLOPT_PORT, (long) port);
|
||||
@@ -132,7 +128,6 @@ testExternalGet (unsigned int flags)
|
||||
curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
|
||||
/* TLS options */
|
||||
curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
|
||||
curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha);
|
||||
curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||
curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||
curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
|
||||
|
||||
Reference in New Issue
Block a user