module documentation
Tests for twisted.protocols.tls
.
Class |
|
A protocol which collects the bytes it receives and closes its connection after receiving a certain minimum of data. |
Class |
|
A ClientFactory that has a set of acceptable protocols for NPN/ALPN negotiation. |
Class |
|
Test for the implementation of ISSLTransport which runs over another transport. |
Class |
|
HandshakeCallbackContextFactory is a factory for SSL contexts which allows applications to get notification when the SSL handshake completes. |
Class |
|
Non-streaming producers can be adapted into being streaming producers. |
Class |
|
A ServerFactory that has a set of acceptable protocols for NPN/ALPN negotiation. |
Class |
|
Ensure TLSMemoryBIOFactory logging acts correctly. |
Class |
|
Tests for the implementation of ISSLTransport which runs over another ITransport . |
Class |
|
The TLS transport must support the IConsumer interface. |
Function | build |
Create a protocol hooked up to a TLS transport hooked up to a StringTransport. |
Function | handshaking |
Construct a client and server TLSMemoryBIOProtocol connected by an IO pump. |
def buildTLSProtocol(server=False, transport=None, fakeConnection=None, serverMethod=None):
(source)
¶
Create a protocol hooked up to a TLS transport hooked up to a StringTransport.
Parameters | |
server | Undocumented |
transport | Undocumented |
fake | Undocumented |
server | The TLS method accepted by the server-side and used by the created protocol. Set to to None to use the default method used by your OpenSSL library. |
def handshakingClientAndServer(clientGreetingData=None, clientAbortAfterHandshake=False):
(source)
¶
Construct a client and server TLSMemoryBIOProtocol
connected by an IO pump.
Parameters | |
client | Undocumented |
client | Undocumented |
greetingbytes | The data which should be written in connectionMade . |
Returns | |
3-tuple of client, server, twisted.test.iosim.IOPump |