Ticket #5642 enhancement new
TLS endpoint wrappers
|Reported by:||glyph||Owned by:||ashfall|
|Cc:||habnabit, ashfall, tobias.oberstein@…||Branch:|
If I construct my own stream client or stream server endpoint, in addition to whatever interesting routing or shuttling-around of I'm doing with the bytes, I might want to encrypt them because they go over some public network as part of the process. There should be something so I can do TLSify(someEndpoint, contextFactory) and get back a new endpoint that does TLS without necessarily doing TCP.
(One example use-case is an endpoint that forwards a port via SSH, or opens a unix socket that some routing software eventually connects to a TCP socket.)