diff options
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/tls/tls.c | 10 | ||||
-rw-r--r-- | src/vnet/tls/tls.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c index b91282ce074..54bb739e11d 100644 --- a/src/vnet/tls/tls.c +++ b/src/vnet/tls/tls.c @@ -400,6 +400,16 @@ tls_ctx_handshake_is_over (tls_ctx_t * ctx) } void +tls_notify_app_io_error (tls_ctx_t *ctx) +{ + ASSERT (tls_ctx_handshake_is_over (ctx)); + + session_transport_reset_notify (&ctx->connection); + session_transport_closed_notify (&ctx->connection); + tls_disconnect_transport (ctx); +} + +void tls_session_reset_callback (session_t * s) { tls_ctx_t *ctx; diff --git a/src/vnet/tls/tls.h b/src/vnet/tls/tls.h index 4e2fabd5669..54798e0230f 100644 --- a/src/vnet/tls/tls.h +++ b/src/vnet/tls/tls.h @@ -137,6 +137,7 @@ int tls_add_vpp_q_builtin_rx_evt (session_t * s); int tls_notify_app_accept (tls_ctx_t * ctx); int tls_notify_app_connected (tls_ctx_t * ctx, session_error_t err); void tls_notify_app_enqueue (tls_ctx_t * ctx, session_t * app_session); +void tls_notify_app_io_error (tls_ctx_t *ctx); void tls_disconnect_transport (tls_ctx_t * ctx); #endif /* SRC_VNET_TLS_TLS_H_ */ |