TLS stream implementation
TLSStream can be used to implement TLS communication on top of a TCP connection. The TLSContextKind of an TLSStream determines if the TLS tunnel is established actively (client) or passively (server).
Specifies how rigorously TLS peer certificates are validated.
Creates a new context of the given kind.
Constructs a new TLS tunnel and infers the stream state from the TLSContextKind.
Constructs a new TLS tunnel, allowing to override the stream state.
Constructs a new TLS stream using manual memory allocator.
Encapsulates the configuration for an TLS tunnel.
Creates an TLS tunnel within an existing stream.