summaryrefslogtreecommitdiff
path: root/src/tls.c
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2020-08-17 17:46:54 +0300
committerGitHub <noreply@github.com>2020-08-17 17:46:54 +0300
commit64c360c5156ca6ee6d1eb52bfeb3fa48f3b25da5 (patch)
tree693cf16a95771dc0718bab0975265a104e260b84 /src/tls.c
parentfb2a94af3fbb3f3cf8b26b8bd89387669cb111a1 (diff)
downloadredis-64c360c5156ca6ee6d1eb52bfeb3fa48f3b25da5.tar.gz
Module API: fix missing RM_CLIENTINFO_FLAG_SSL. (#7666)
The `REDISMODULE_CLIENTINFO_FLAG_SSL` flag was already a part of the `RedisModuleClientInfo` structure but was not implemented.
Diffstat (limited to 'src/tls.c')
-rw-r--r--src/tls.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tls.c b/src/tls.c
index 4f0ea4d65..52887cd23 100644
--- a/src/tls.c
+++ b/src/tls.c
@@ -823,6 +823,12 @@ exit:
return nread;
}
+static int connTLSGetType(connection *conn_) {
+ (void) conn_;
+
+ return CONN_TYPE_TLS;
+}
+
ConnectionType CT_TLS = {
.ae_handler = tlsEventHandler,
.accept = connTLSAccept,
@@ -837,6 +843,7 @@ ConnectionType CT_TLS = {
.sync_write = connTLSSyncWrite,
.sync_read = connTLSSyncRead,
.sync_readline = connTLSSyncReadLine,
+ .get_type = connTLSGetType
};
int tlsHasPendingData() {