diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-09-11 22:21:02 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-09-11 22:21:02 +0000 |
commit | db7bde1d7ac8567a2b996ebd92db11487579b85f (patch) | |
tree | a9b2159a0d0b4f8e110eaccb0219139f2297917d /lib | |
parent | 719008596a7ab0f6e505060d0940c8f4390a8383 (diff) |
added ability to set prefered list of ciphers
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 8 |
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| |