Combine TLS connection function params into handler class.
Flesh out TLS unit tests.