Any browser (Firefox, Chrome, Opera) that can run Verto can do TLS1.2, We shouldn't lower the bar when we don't need too.

This commit is contained in:
Brian West committed 2014-07-18 09:10:15 -05:00
1 parent 86f9029b98
commit 835fae4227
2 files changed
+23 -2

No files matched your search

+11
View File
@@ -150,6 +150,17 @@ static void verto_init_ssl(verto_profile_t *profile)
profile->ssl_ready = 1;
assert(profile->ssl_ctx);
/* Disable SSLv2 */
SSL_CTX_set_options(profile->ssl_ctx, SSL_OP_NO_SSLv2);
/* Disable SSLv3 */
SSL_CTX_set_options(profile->ssl_ctx, SSL_OP_NO_SSLv3);
/* Disable TLSv1 */
SSL_CTX_set_options(profile->ssl_ctx, SSL_OP_NO_TLSv1);
/* Disable TLSv1_1 */
SSL_CTX_set_options(profile->ssl_ctx, SSL_OP_NO_TLSv1_1);
/* Disable Compression CRIME (Compression Ratio Info-leak Made Easy) */
SSL_CTX_set_options(profile->ssl_ctx, SSL_OP_NO_COMPRESSION);
/* set the local certificate from CertFile */
if (!zstr(profile->chain)) {
SSL_CTX_use_certificate_chain_file(profile->ssl_ctx, profile->chain);