SSLConnection¶
Wrap another protocol in an SSL connection.
A finished handshake reaches the wrapped protocol as connected on a session
that connected out, or accepted on one that was connected to. A failed one
reaches it as auth_failed when the session is in SSLAuthFail, and as
nothing at all when the session is in SSLError. The connection closes on
either failure. SSLAuthFail and SSLError each list the failures they
cover.
Implements¶
Constructors¶
create¶
Initialise with a wrapped protocol and an SSL session.
Parameters¶
- notify: TCPConnectionNotify iso
- ssl: SSL iso
Returns¶
- SSLConnection iso^
Public Functions¶
accepted¶
Swallow this event until the handshake is complete.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
connecting¶
Forward to the wrapped protocol.
Parameters¶
- conn: TCPConnection ref
- count: U32 val
Returns¶
- None val
connected¶
Swallow this event until the handshake is complete.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
connect_failed¶
Forward to the wrapped protocol.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
sent¶
Pass the data to the SSL session and check for both new application data and new destination data.
Parameters¶
- conn: TCPConnection ref
- data: ByteSeq
Returns¶
sentv¶
Pass each sequence to the SSL session and check for both new application
data and new destination data. Returns an empty sequence: what leaves the
connection is the ciphertext _poll writes, not these bytes.
Parameters¶
- conn: TCPConnection ref
- data: ByteSeqIter val
Returns¶
- ByteSeqIter val
received¶
Pass the data to the SSL session and check for both new application data and new destination data.
Parameters¶
- conn: TCPConnection ref
- data: Array[U8 val] iso
- times: USize val
Returns¶
- Bool val
expect¶
Keep track of the expect count for the wrapped protocol. Always tell the TCPConnection to read all available data.
Parameters¶
- conn: TCPConnection ref
- qty: USize val
Returns¶
- USize val
closed¶
Forward to the wrapped protocol.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
throttled¶
Forward to the wrapped protocol.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
unthrottled¶
Forward to the wrapped protocol.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
proxy_via¶
Parameters¶
Returns¶
auth_failed¶
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val