Conform to OFTLSSocket.

Still a few FIXMEs / TODOs.