Tls: Added a reset function.