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
5abdf9a5
Unverified
Commit
5abdf9a5
authored
Dec 13, 2020
by
Madelyn Olson
Committed by
GitHub
Dec 13, 2020
Browse files
Removed usage of bool from tls.c (#8175)
parent
bde33501
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tls.c
View file @
5abdf9a5
...
@@ -375,7 +375,7 @@ typedef struct tls_connection {
...
@@ -375,7 +375,7 @@ typedef struct tls_connection {
listNode
*
pending_list_node
;
listNode
*
pending_list_node
;
}
tls_connection
;
}
tls_connection
;
static
connection
*
createTLSConnection
(
bool
client_side
)
{
static
connection
*
createTLSConnection
(
int
client_side
)
{
SSL_CTX
*
ctx
=
redis_tls_ctx
;
SSL_CTX
*
ctx
=
redis_tls_ctx
;
if
(
client_side
&&
redis_tls_client_ctx
)
if
(
client_side
&&
redis_tls_client_ctx
)
ctx
=
redis_tls_client_ctx
;
ctx
=
redis_tls_client_ctx
;
...
@@ -387,7 +387,7 @@ static connection *createTLSConnection(bool client_side) {
...
@@ -387,7 +387,7 @@ static connection *createTLSConnection(bool client_side) {
}
}
connection
*
connCreateTLS
(
void
)
{
connection
*
connCreateTLS
(
void
)
{
return
createTLSConnection
(
true
);
return
createTLSConnection
(
1
);
}
}
/* Fetch the latest OpenSSL error and store it in the connection */
/* Fetch the latest OpenSSL error and store it in the connection */
...
@@ -408,7 +408,7 @@ static void updateTLSError(tls_connection *conn) {
...
@@ -408,7 +408,7 @@ static void updateTLSError(tls_connection *conn) {
* is not in an error state.
* is not in an error state.
*/
*/
connection
*
connCreateAcceptedTLS
(
int
fd
,
int
require_auth
)
{
connection
*
connCreateAcceptedTLS
(
int
fd
,
int
require_auth
)
{
tls_connection
*
conn
=
(
tls_connection
*
)
createTLSConnection
(
false
);
tls_connection
*
conn
=
(
tls_connection
*
)
createTLSConnection
(
0
);
conn
->
c
.
fd
=
fd
;
conn
->
c
.
fd
=
fd
;
conn
->
c
.
state
=
CONN_STATE_ACCEPTING
;
conn
->
c
.
state
=
CONN_STATE_ACCEPTING
;
...
...
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