OpenSSLStream

Creates an SSL/TLS tunnel within an existing stream.

Note: Be sure to call finalize before finalizing/closing the outer stream so that the SSL tunnel is properly closed first.

Constructors

this
this(InterfaceProxy!Stream underlying, OpenSSLContext ctx, TLSStreamState state, string peer_name, NetworkAddress peer_address, string[] alpn)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

read
alias read = Stream.read
Undocumented in source.
write
alias write = Stream.write
Undocumented in source.

Functions

finalize
void finalize()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
peek
const(ubyte)[] peek()
Undocumented in source. Be warned that the author may not have intended to support it.
read
size_t read(ubyte[] dst, IOMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
write
size_t write(const(ubyte)[] bytes_, IOMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
write
size_t write(ubyte[] bytes_, IOMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

alpn
string alpn [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
dataAvailableForRead
bool dataAvailableForRead [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
leastSize
ulong leastSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
peerCertificate
TLSCertificateInformation peerCertificate [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
peerCertificateX509
X509* peerCertificateX509 [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From TLSStream

peerCertificate
TLSCertificateInformation peerCertificate [@property getter]
Undocumented in source.
alpn
string alpn [@property getter]

The ALPN that has been negotiated for this connection.

Meta