Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5266293a
Unverified
Commit
5266293a
authored
Jul 10, 2020
by
Yossi Gottlieb
Committed by
GitHub
Jul 10, 2020
Browse files
TLS: Ignore client cert when tls-auth-clients off. (#7457)
parent
6a014af7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tls.c
View file @
5266293a
...
...
@@ -337,9 +337,7 @@ connection *connCreateAcceptedTLS(int fd, int require_auth) {
conn
->
c
.
state
=
CONN_STATE_ACCEPTING
;
if
(
!
require_auth
)
{
/* We still verify certificates if provided, but don't require them.
*/
SSL_set_verify
(
conn
->
ssl
,
SSL_VERIFY_PEER
,
NULL
);
SSL_set_verify
(
conn
->
ssl
,
SSL_VERIFY_NONE
,
NULL
);
}
SSL_set_fd
(
conn
->
ssl
,
conn
->
c
.
fd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment