1
0
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:
Daniel Stenberg 2001-09-11 22:21:02 +00:00
parent 719008596a
commit db7bde1d7a

View File

@ -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|