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__ */