Preliminary version of Tcl's socket.test modified for tls.