slowtec/tokio-modbus

Client-side TLS support

uklotzde opened this issue · 1 comments

The TCP server is agnostic of TLS by accepting a pre-configured TcpListener. But the TCP client is not (yet).

We need to find a way to (re-)use the TCP client for establishing TLS connections with a minimum amount of code duplication. Ideally, the connection management could be outsourced like for the server for decoupling these orthogonal aspects.

This is the successor for issue #133. Please refer to that issue for any preceding discussions.

I noticed that we still need to abstract over both TlsStream and TcpStream to achieve an agnostic implementation for both client and server. My bad.