1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

applied patch to disable SSLv3 and SSL compression explicitly (close #2071)

svn path=/icecast/trunk/icecast/; revision=19263
This commit is contained in:
Philipp Schafft 2014-11-03 19:34:10 +00:00
parent c4d9eaa066
commit a3b50beabd

View File

@ -204,7 +204,11 @@ static void get_ssl_certificate (ice_config_t *config)
method = SSLv23_server_method();
ssl_ctx = SSL_CTX_new (method);
ssl_opts = SSL_CTX_get_options (ssl_ctx);
SSL_CTX_set_options (ssl_ctx, ssl_opts|SSL_OP_NO_SSLv2);
#ifdef SSL_OP_NO_COMPRESSION
SSL_CTX_set_options (ssl_ctx, ssl_opts|SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_COMPRESSION);
#else
SSL_CTX_set_options (ssl_ctx, ssl_opts|SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3);
#endif
do
{