mirror of
https://github.com/curl/curl.git
synced 2026-04-20 00:21:14 +03:00
added ability to set prefered list of ciphers
This commit is contained in:
parent
719008596a
commit
db7bde1d7a
1 changed files with 8 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue