summaryrefslogtreecommitdiff
path: root/src/tls.c
diff options
context:
space:
mode:
authorMadelyn Olson <34459052+madolson@users.noreply.github.com>2020-12-13 01:11:29 -0800
committerGitHub <noreply@github.com>2020-12-13 11:11:29 +0200
commit5abdf9a556e22b7528af3fcc3dcc7964d1ad6d66 (patch)
treeff3628e143c0f70c1b19149d1887b563a7677f95 /src/tls.c
parentbde33501c41e3cb49174fb282164e5ccb532a4f8 (diff)
downloadredis-5abdf9a556e22b7528af3fcc3dcc7964d1ad6d66.tar.gz
Removed usage of bool from tls.c (#8175)
Diffstat (limited to 'src/tls.c')
-rw-r--r--src/tls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tls.c b/src/tls.c
index caa987965..43c2f5551 100644
--- a/src/tls.c
+++ b/src/tls.c
@@ -375,7 +375,7 @@ typedef struct tls_connection {
listNode *pending_list_node;
} tls_connection;
-static connection *createTLSConnection(bool client_side) {
+static connection *createTLSConnection(int client_side) {
SSL_CTX *ctx = redis_tls_ctx;
if (client_side && redis_tls_client_ctx)
ctx = redis_tls_client_ctx;
@@ -387,7 +387,7 @@ static connection *createTLSConnection(bool client_side) {
}
connection *connCreateTLS(void) {
- return createTLSConnection(true);
+ return createTLSConnection(1);
}
/* Fetch the latest OpenSSL error and store it in the connection */
@@ -408,7 +408,7 @@ static void updateTLSError(tls_connection *conn) {
* is not in an error state.
*/
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.state = CONN_STATE_ACCEPTING;