Part of twisted.internet View Source
This module implements memory BIO based TLS support. It is the
preferred implementation and will be used whenever pyOpenSSL 0.10 or newer
is installed (whenever twisted.protocols.tls
is
importable).
Present Since | 11.1 |
Function | startTLS | Add a layer of SSL to a transport. |
Class | ConnectionMixin | A mixin for twisted.internet.abstract.FileDescriptor
which adds an ITLSTransport
implementation. |
Class | ClientMixin | A mixin for twisted.internet.tcp.Client
which just marks it as a client for the purposes of the default TLS
handshake. |
Class | ServerMixin | A mixin for twisted.internet.tcp.Server
which just marks it as a server for the purposes of the default TLS
handshake. |
Class | _BypassTLS | _BypassTLS
is used as the transport object for the TLS protocol object used to
implement startTLS . Its methods skip any TLS logic which
startTLS enables. |
Add a layer of SSL to a transport.
Parameters | transport | The transport which will be modified. This can either by a FileDescriptor
or a FileHandle .
The actual requirements of this instance are that it have:
|
contextFactory | An SSL context factory defining SSL parameters for the new SSL layer. (type: twisted.internet.ssl.ContextFactory ) | |
normal | A flag indicating whether SSL will go in the same direction as the
underlying transport goes. That is, if the SSL client will be the
underlying client and the SSL server will be the underlying server.
True means it is the same, False means they are
switched. | |
bypass | A transport base class to call methods on to bypass the new SSL layer (so
that the SSL layer itself can send its bytes). (type: type ) |