TLS: Ignore client cert when tls-auth-clients off. (#7457)
(cherry picked from commit 5266293a0fdee57fe6bb8a408a2e2ff0c66f0259)
This commit is contained in:
parent
2d3687655b
commit
6f1e828454
@ -337,9 +337,7 @@ connection *connCreateAcceptedTLS(int fd, int require_auth) {
|
|||||||
conn->c.state = CONN_STATE_ACCEPTING;
|
conn->c.state = CONN_STATE_ACCEPTING;
|
||||||
|
|
||||||
if (!require_auth) {
|
if (!require_auth) {
|
||||||
/* We still verify certificates if provided, but don't require them.
|
SSL_set_verify(conn->ssl, SSL_VERIFY_NONE, NULL);
|
||||||
*/
|
|
||||||
SSL_set_verify(conn->ssl, SSL_VERIFY_PEER, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SSL_set_fd(conn->ssl, conn->c.fd);
|
SSL_set_fd(conn->ssl, conn->c.fd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user