BotanTLSStream

Undocumented in source.

Constructors

this
this(InterfaceProxy!Stream underlying, BotanTLSContext ctx, void delegate(in TLSAlert alert, in ubyte[] ub) alert_cb, bool delegate(in TLSSession session) hs_cb, string peer_name, NetworkAddress peer_address)
Undocumented in source.
this
this(InterfaceProxy!Stream underlying, BotanTLSContext ctx, TLSStreamState state, string peer_name, NetworkAddress peer_address)
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 )
Undocumented in source. Be warned that the author may not have intended to support it.
readChunk
ubyte[] readChunk(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
setAlertCallback
void setAlertCallback(OnAlert alert_cb)
Undocumented in source. Be warned that the author may not have intended to support it.
setHandshakeCallback
void setHandshakeCallback(OnHandshakeComplete hs_cb)
Undocumented in source. Be warned that the author may not have intended to support it.
write
size_t write(ubyte[] src, IOMode )
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.
cipher
TLSCiphersuite cipher [@property getter]

Returns the complete ciphersuite details from the negotiated TLS connection

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.
protocol
TLSProtocolVersion protocol [@property getter]

Returns the negotiated version of the TLS Protocol

sessionId
const(ubyte[]) sessionId [@property getter]

Get the session ID

started
SysTime started [@property getter]

Returns the date/time the session was started

x509Certificate
const(X509Certificate) x509Certificate [@property getter]

Returns the remote public certificate from the chain

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