summaryrefslogtreecommitdiff
path: root/src/tls.c
diff options
context:
space:
mode:
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() {