mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
added ability to set prefered list of ciphers
This commit is contained in:
parent
719008596a
commit
db7bde1d7a
@ -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|
|
||||
|
Loading…
Reference in New Issue
Block a user