- createTLSContext
TLSContext createTLSContext(TLSContextKind kind, TLSVersion ver)
Creates a new context of the given kind.
- createTLSStream
TLSStream createTLSStream(Stream underlying, TLSContext ctx, string peer_name, NetworkAddress peer_address)
Constructs a new TLS tunnel and infers the stream state from the TLSContextKind.
- createTLSStream
TLSStream createTLSStream(Stream underlying, TLSContext ctx, TLSStreamState state, string peer_name, NetworkAddress peer_address)
Constructs a new TLS tunnel, allowing to override the stream state.
- createTLSStreamFL
auto createTLSStreamFL(Stream underlying, TLSContext ctx, TLSStreamState state, string peer_name, NetworkAddress peer_address)
Constructs a new TLS stream using manual memory allocator.
- setTLSContextFactory
void setTLSContextFactory(TLSContext function(TLSContextKind, TLSVersion) @(safe) factory)
Undocumented in source. Be warned that the author may not have intended to support it.
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).