aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ssluse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 14b926451..2f76aa606 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -567,6 +567,14 @@ Curl_SSLConnect(struct connectdata *conn)
}
}
+ if(data->set.ssl.cipher_list) {
+ if (!SSL_CTX_set_cipher_list(conn->ssl.ctx,
+ data->set.ssl.cipher_list)) {
+ failf(data, "failed setting cipher list\n");
+ return CURLE_SSL_CONNECT_ERROR;
+ }
+ }
+
if(data->set.ssl.verifypeer){
SSL_CTX_set_verify(conn->ssl.ctx,
SSL_VERIFY_PEER|SSL_VERIFY_FAIL_IF_NO_PEER_CERT|