socket
socket copied to clipboard
Use separate interfaces for TLS management and TLS state inspection
shutdownTLS
and setupTLS
indicate that a sockets TLS can be setup or shutdown.
However, an encrypted socket may want to expose that information without offering to change the TLS state - use cases are when wrapping another socket or also concretely, QUIC, which is forcibly using TLS, setup and shutdown not possible.