Part of twisted.protocols.tls View Source View In Hierarchy
TLSMemoryBIOProtocolis a protocol wrapper which uses OpenSSL via a memory BIO to encrypt bytes written to it before sending them on to the underlying transport and decrypts bytes received from the underlying transport before delivering them to the wrapped protocol.
|Instance Variables||_tlsConnection||The |
|_lostConnection||A flag indicating whether connection loss has already been dealt with
|_writeBlockedOnRead||A flag indicating whether further writing must wait for data to be
|_connectWrapped||A flag indicating whether or not to call |
|_handshakeDone||A flag indicating whether or not the handshake is known to have
completed successfully (|
|_reason||If an unexpected |
|Method||makeConnection||Connect this wrapper to the given transport and initialize the necessary
|Method||dataReceived||Deliver any received bytes to the receive BIO and then read and deliver to the application any application-level data which becomes available as a result of this.|
|Method||connectionLost||Handle the possible repetition of calls to this method (due to either the underlying transport going away or due to an error at the TLS layer) and make sure the base implementation only gets invoked once.|
|Method||loseConnection||Send a TLS close alert and close the underlying connection.|
|Method||write||Process the given application bytes and send any resulting TLS traffic which arrives in the send BIO.|
|Method||writeSequence||Write a sequence of application bytes by joining them into one string
and passing them to
|Method||getPeerCertificate||Return an object with the peer's certificate info.|
|Method||_flushSendBIO||Read any bytes out of the send BIO and write them to the underlying transport.|
Inherited from ProtocolWrapper:
|Method||connectionMade||Called when a connection is made.|
OpenSSL.SSL.Connection object being used to
encrypt and decrypt this connection.
hostFromTransportmethods only. A different system handle may be returned by future versions of this method.
OpenSSL.SSL.Connectionwith a memory BIO.