X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=openssl.c;h=2c065cc50aa3f2476fdd1ac63962caa0fb40c282;hp=37b806963f75d99d88116f827dcd703604eca95a;hb=c83713758e9465e03ec3b0228c433e6f2d843352;hpb=e1d238273e635876aa141baf24570a1fbb2759cb diff --git a/openssl.c b/openssl.c index 37b80696..2c065cc5 100644 --- a/openssl.c +++ b/openssl.c @@ -837,6 +837,18 @@ extern int create_client_ssl_connection(struct client_state *csp) goto exit; } + if (csp->config->cipher_list != NULL) + { + if (!SSL_set_cipher_list(ssl, csp->config->cipher_list)) + { + log_ssl_errors(LOG_LEVEL_ERROR, + "Setting the cipher list '%s' for the client connection failed", + csp->config->cipher_list); + ret = -1; + goto exit; + } + } + /* * Handshake with client */ @@ -1061,6 +1073,18 @@ extern int create_server_ssl_connection(struct client_state *csp) goto exit; } + if (csp->config->cipher_list != NULL) + { + if (!SSL_set_cipher_list(ssl, csp->config->cipher_list)) + { + log_ssl_errors(LOG_LEVEL_ERROR, + "Setting the cipher list '%s' for the server connection failed", + csp->config->cipher_list); + ret = -1; + goto exit; + } + } + /* * Set the hostname to check against the received server certificate */