mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Disable SSL v1.1
This commit is contained in:
1 parent
77fae5c562
commit
89757388c7
2 files changed
+2
No files matched your search
@@ -3684,6 +3684,7 @@ void mg_tls_init(struct mg_connection *c, struct mg_tls_opts *opts) {
|
|||||||
SSL_set_options(tls->ssl, SSL_OP_NO_SSLv2);
|
SSL_set_options(tls->ssl, SSL_OP_NO_SSLv2);
|
||||||
SSL_set_options(tls->ssl, SSL_OP_NO_SSLv3);
|
SSL_set_options(tls->ssl, SSL_OP_NO_SSLv3);
|
||||||
SSL_set_options(tls->ssl, SSL_OP_NO_TLSv1);
|
SSL_set_options(tls->ssl, SSL_OP_NO_TLSv1);
|
||||||
|
SSL_set_options(tls->ssl, SSL_OP_NO_TLSv1_1);
|
||||||
#ifdef MG_ENABLE_OPENSSL_NO_COMPRESSION
|
#ifdef MG_ENABLE_OPENSSL_NO_COMPRESSION
|
||||||
SSL_set_options(tls->ssl, SSL_OP_NO_COMPRESSION);
|
SSL_set_options(tls->ssl, SSL_OP_NO_COMPRESSION);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -263,6 +263,7 @@ void mg_tls_init(struct mg_connection *c, struct mg_tls_opts *opts) {
|
|||||||
SSL_set_options(tls->ssl, SSL_OP_NO_SSLv2);
|
SSL_set_options(tls->ssl, SSL_OP_NO_SSLv2);
|
||||||
SSL_set_options(tls->ssl, SSL_OP_NO_SSLv3);
|
SSL_set_options(tls->ssl, SSL_OP_NO_SSLv3);
|
||||||
SSL_set_options(tls->ssl, SSL_OP_NO_TLSv1);
|
SSL_set_options(tls->ssl, SSL_OP_NO_TLSv1);
|
||||||
|
SSL_set_options(tls->ssl, SSL_OP_NO_TLSv1_1);
|
||||||
#ifdef MG_ENABLE_OPENSSL_NO_COMPRESSION
|
#ifdef MG_ENABLE_OPENSSL_NO_COMPRESSION
|
||||||
SSL_set_options(tls->ssl, SSL_OP_NO_COMPRESSION);
|
SSL_set_options(tls->ssl, SSL_OP_NO_COMPRESSION);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user