refactor: SSL_Options, ignore client disconnect w/o close message
This commit is contained in:
parent
495a5e6479
commit
83e0a6b1ea
1 changed files with 4 additions and 1 deletions
|
|
@ -357,7 +357,10 @@ void SecureSocket::initContext(bool server)
|
|||
|
||||
// Prevent the usage of of all version prior to TLSv1.2 as they are known to
|
||||
// be vulnerable
|
||||
SSL_CTX_set_options(m_ssl->m_context, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1);
|
||||
SSL_CTX_set_options(
|
||||
m_ssl->m_context,
|
||||
SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 | SSL_OP_IGNORE_UNEXPECTED_EOF
|
||||
);
|
||||
|
||||
if (m_ssl->m_context == nullptr) {
|
||||
SslLogger::logError();
|
||||
|
|
|
|||
Loading…
Reference in a new issue