From d176ce7b9a46795c6206e1acbff3463cb53ea2f2 Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Thu, 18 Mar 2021 21:24:11 +0200 Subject: [PATCH] tls_close() --- include/tlsport.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/tlsport.h b/include/tlsport.h index 4bdae9d..7ed41ba 100644 --- a/include/tlsport.h +++ b/include/tlsport.h @@ -39,4 +39,10 @@ int ssllib_free(void); */ int tls_connect(const char *, const char *, struct tlsport *); +/* gracefully shutdown TLS connection and free resources + * it's always freeing and closing, but in case of wrong + * shutdown procedure returns -1, 0 otherwise. + */ +int tls_close(struct tlsport *); + #endif /* __TLSPORT_H__ */