class documentation
Method __init__ Construct a _ContextFactoryToConnectionFactory with a twisted.internet.interfaces.IOpenSSLContextFactory.
Method clientConnectionForTLS Construct an OpenSSL server connection from the wrapped old-style context factory.
Method serverConnectionForTLS Construct an OpenSSL server connection from the wrapped old-style context factory.
Method _connectionForTLS Create an OpenSSL.SSL.Connection object.
Instance Variable _oldStyleContextFactory Undocumented
def __init__(self, oldStyleContextFactory): (source)

Construct a _ContextFactoryToConnectionFactory with a twisted.internet.interfaces.IOpenSSLContextFactory.

Immediately call getContext on oldStyleContextFactory in order to force advance parameter checking, since old-style context factories don't actually check that their arguments to OpenSSL are correct.

Parameters
oldStyleContextFactory:twisted.internet.interfaces.IOpenSSLContextFactoryA factory that can produce contexts.
def clientConnectionForTLS(self, protocol): (source)

Construct an OpenSSL server connection from the wrapped old-style context factory.

Parameters
protocol:TLSMemoryBIOProtocolThe protocol initiating a TLS connection.
Returns
OpenSSL.SSL.Connectiona connection
Note
Since old-style context factories don't distinguish between clients and servers, this is exactly the same as _ContextFactoryToConnectionFactory.serverConnectionForTLS.
def serverConnectionForTLS(self, protocol): (source)

Construct an OpenSSL server connection from the wrapped old-style context factory.

Parameters
protocol:TLSMemoryBIOProtocolThe protocol initiating a TLS connection.
Returns
OpenSSL.SSL.Connectiona connection
Note
Since old-style context factories don't distinguish between clients and servers, this is exactly the same as _ContextFactoryToConnectionFactory.clientConnectionForTLS.
def _connectionForTLS(self, protocol): (source)

Create an OpenSSL.SSL.Connection object.

Parameters
protocol:TLSMemoryBIOProtocolThe protocol initiating a TLS connection.
Returns
OpenSSL.SSL.Connectiona connection
_oldStyleContextFactory = (source)

Undocumented