提交 637f3b63 authored 作者: Brian West's avatar Brian West 提交者: Mike Jerris

FS-10406: [mod_sofia] mod_sofia secure websocket connections SSLv3 and tls v1.0…

FS-10406: [mod_sofia] mod_sofia secure websocket connections SSLv3 and tls v1.0 is still not disabled  #resolve
上级 3da50fc1
Tue Jun 6 09:36:46 CDT 2017
Tue Jul 11 12:51:40 EDT 2017
......@@ -390,6 +390,15 @@ static int tport_ws_init_primary_secure(tport_primary_t *pri,
goto done;
}
/* Disable SSLv2 */
SSL_CTX_set_options(wspri->ssl_ctx, SSL_OP_NO_SSLv2);
/* Disable SSLv3 */
SSL_CTX_set_options(wspri->ssl_ctx, SSL_OP_NO_SSLv3);
/* Disable TLSv1 */
SSL_CTX_set_options(wspri->ssl_ctx, SSL_OP_NO_TLSv1);
/* Disable Compression CRIME (Compression Ratio Info-leak Made Easy) */
SSL_CTX_set_options(wspri->ssl_ctx, SSL_OP_NO_COMPRESSION);
if (chain) {
if ( !SSL_CTX_use_certificate_chain_file(wspri->ssl_ctx, chain) ) {
tls_log_errors(3, "tport_ws_init_primary_secure", 0);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论