tls: export TLSSocket