tls: shutdown openssl context on app close

Type: improvement

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ie0fde16fb4e41637169474628808fddf343884f3
This commit is contained in:
Florin Coras
2021-10-08 13:43:55 -07:00
committed by Florin Coras
parent ea96292985
commit 6fff5ef8a9

View File

@ -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