summaryrefslogtreecommitdiffstats
path: root/src/vnet/tls
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-08-07 21:39:27 -0700
committerDave Barach <openvpp@barachs.net>2019-08-09 11:49:29 +0000
commitf03c49413f270386d46a82dd9a3bce819cf81250 (patch)
treebb66fbbb3fc536ba6bb90bda80e3596c4b6067d9 /src/vnet/tls
parent4ea511c855ae9bf2040f8cff8b7323692094e8c6 (diff)
tls: handle transport reset
Type:fix Change-Id: I5994fb53dc4b9fd58920b3d67472c38b41db27c2 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tls')
-rw-r--r--src/vnet/tls/tls.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c
index 16405707bc9..1358f9cb345 100644
--- a/src/vnet/tls/tls.c
+++ b/src/vnet/tls/tls.c
@@ -357,7 +357,12 @@ tls_ctx_handshake_is_over (tls_ctx_t * ctx)
void
tls_session_reset_callback (session_t * s)
{
- clib_warning ("called...");
+ tls_ctx_t *ctx;
+
+ ctx = tls_ctx_get (s->opaque);
+ session_transport_reset_notify (&ctx->connection);
+ session_transport_closed_notify (&ctx->connection);
+ tls_disconnect_transport (ctx);
}
int