Skip to content

Commit

Permalink
added ability to set prefered list of ciphers
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Sep 11, 2001
1 parent 7190085 commit db7bde1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ssluse.c
Expand Up @@ -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|
Expand Down

0 comments on commit db7bde1

Please sign in to comment.