module documentation
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 |
Class |
|
A mixin for twisted.internet.tcp.Client which just marks it as a client for the purposes of the default TLS handshake. |
Class |
|
A mixin for twisted.internet.abstract.FileDescriptor which adds an ITLSTransport implementation. |
Class |
|
A mixin for twisted.internet.tcp.Server which just marks it as a server for the purposes of the default TLS handshake. |
Function | start |
Add a layer of SSL to a transport. |
Class | _ |
_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
|
contexttwisted.internet.interfaces.IOpenSSLContextFactory | An SSL context factory defining SSL parameters for the new SSL layer. |
normal:bool | 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:type | A transport base class to call methods on to bypass the new SSL layer (so that the SSL layer itself can send its bytes). |