tls_connection_shutdown() function
tls_connection_shutdown - Shutdown TLS connection @tls_ctx: TLS context data from tls_init() @conn: Connection context data from tls_connection_init() Returns: 0 on success, -1 on failure Shutdown current TLS connection without releasing all resources. New connection can be started by using the same conn without having to call tls_connection_init() or setting certificates etc. again. The new connection should try to use session resumption.