diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2020-08-17 17:46:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 17:46:54 +0300 |
commit | 64c360c5156ca6ee6d1eb52bfeb3fa48f3b25da5 (patch) | |
tree | 693cf16a95771dc0718bab0975265a104e260b84 /src/tls.c | |
parent | fb2a94af3fbb3f3cf8b26b8bd89387669cb111a1 (diff) | |
download | redis-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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() { |