aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-09-11 22:21:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-09-11 22:21:02 +0000
commitdb7bde1d7ac8567a2b996ebd92db11487579b85f (patch)
treea9b2159a0d0b4f8e110eaccb0219139f2297917d /lib
parent719008596a7ab0f6e505060d0940c8f4390a8383 (diff)
added ability to set prefered list of ciphers
Diffstat (limited to 'lib')
-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|