Merge branch '2.3' into 2.4

This commit is contained in:
Markus Mäkelä
2019-12-03 10:40:57 +02:00

View File

@ -371,7 +371,7 @@ bool SSLContext::init()
/* Set to require peer (client) certificate verification */
if (m_cfg.verify_peer)
{
SSL_CTX_set_verify(m_ctx, SSL_VERIFY_PEER, NULL);
SSL_CTX_set_verify(m_ctx, SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT, NULL);
}
/* Set the verification depth */