Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6f1e8284
Commit
6f1e8284
authored
Jul 10, 2020
by
Yossi Gottlieb
Committed by
Oran Agra
Jul 20, 2020
Browse files
TLS: Ignore client cert when tls-auth-clients off. (#7457)
(cherry picked from commit
5266293a
)
parent
2d368765
Changes
1
Show whitespace changes
Inline
Side-by-side
src/tls.c
View file @
6f1e8284
...
@@ -337,9 +337,7 @@ connection *connCreateAcceptedTLS(int fd, int require_auth) {
...
@@ -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
);
...
...
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