summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-10-08 13:43:55 -0700
committerFlorin Coras <florin.coras@gmail.com>2021-10-08 20:39:54 +0000
commit6fff5ef8a91e9297b2477b5ee29750bf11dc96a9 (patch)
tree091b0eee40a8ceb099f7aebc56969cdf65f78797
parentea96292985760b7fc3af54669e3eab35e7561a10 (diff)
tls: shutdown openssl context on app close
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ie0fde16fb4e41637169474628808fddf343884f3
-rw-r--r--src/plugins/tlsopenssl/tls_openssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c
index 3041047a71e..add6d7e0850 100644
--- a/src/plugins/tlsopenssl/tls_openssl.c
+++ b/src/plugins/tlsopenssl/tls_openssl.c
@@ -931,6 +931,8 @@ openssl_app_close (tls_ctx_t * ctx)
openssl_ctx_t *oc = (openssl_ctx_t *) ctx;
session_t *app_session;
+ SSL_shutdown (oc->ssl);
+
/* Wait for all data to be written to tcp */
app_session = session_get_from_handle (ctx->app_session_handle);
if (BIO_ctrl_pending (oc->rbio) <= 0