Merge branch '2.3' into 2.4
This commit is contained in:
@ -371,7 +371,7 @@ bool SSLContext::init()
|
|||||||
/* Set to require peer (client) certificate verification */
|
/* Set to require peer (client) certificate verification */
|
||||||
if (m_cfg.verify_peer)
|
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 */
|
/* Set the verification depth */
|
||||||
|
|||||||
Reference in New Issue
Block a user