summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-12-16 17:05:56 -0800
committerDave Barach <openvpp@barachs.net>2020-12-18 22:28:03 +0000
commit5b8b1aec213baf65d3051c849f5f3deff37d06b5 (patch)
treecfdcaa17dad3c48b27c8e358fbb4b6b53e3e9523 /src/vnet
parent8b60fb0fe6e29aac1847c0b381c0f84165b27b61 (diff)
tls: add custom openssl bio
The bio interacts directly with the session so it avoids using an intermediary mem bio and, implicitly, higher memory consumption and an extra memcpy. Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ifb675cfd12df86396a7a738a6cd4d0882c69ad2f
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/tls/tls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c
index 5b89057f498..59dae88fd1f 100644
--- a/src/vnet/tls/tls.c
+++ b/src/vnet/tls/tls.c
@@ -739,6 +739,7 @@ tls_custom_tx_callback (void *session, transport_send_params_t * sp)
>= SESSION_STATE_TRANSPORT_CLOSED))
return 0;
+ sp->flags = 0;
ctx = tls_ctx_get (app_session->connection_index);
return tls_ctx_write (ctx, app_session, sp);
}