diff options
author | Florin Coras <fcoras@cisco.com> | 2022-02-24 16:35:26 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2022-02-28 21:04:14 +0000 |
commit | 8c5e5f64023146a20e1a9e774b76d6bf713b622b (patch) | |
tree | 363cbbbe69a1032475911b2ad7c1ca2c213ae968 /src/vnet/tls/tls.c | |
parent | 3683d1b5ab253c90506231c1590d92ae95454ee4 (diff) |
tls: handle read write ssl errors
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: If5eed7dac4951f0510a4b4b092f66f44d0d3cacd
Diffstat (limited to 'src/vnet/tls/tls.c')
-rw-r--r-- | src/vnet/tls/tls.c | 10 |
1 files changed, 10 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; |