MCPcopy Create free account
hub / github.com/apache/qpid-proton / test_anonymous_cipher

Method test_anonymous_cipher

python/tests/proton_tests/ssl.py:98–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 self._pump(client, server)
97
98 def test_anonymous_cipher(self):
99 if os.name == "nt":
100 raise Skipped("Windows SChannel lacks anonymous cipher support.")
101 """ With no configuration at all, the client default
102 VERIFY_PEER_NAME should preclude anonymous cipher TLS negotiation.
103 """
104 server = SslTest.SslTestConnection(self.server_domain, mode=Transport.SERVER)
105 client = SslTest.SslTestConnection(self.client_domain)
106
107 # check that no SSL connection exists
108 assert not server.ssl.cipher_name()
109 assert not client.ssl.protocol_name()
110
111 # client.transport.trace(Transport.TRACE_DRV)
112 # server.transport.trace(Transport.TRACE_DRV)
113
114 client.connection.open()
115 server.connection.open()
116 self._pump(client, server)
117
118 assert client.transport.closed
119 assert server.transport.closed
120 assert client.connection.state & Endpoint.REMOTE_UNINIT
121 assert server.connection.state & Endpoint.REMOTE_UNINIT
122
123 def test_simple_anonymous(self):
124 if os.name == "nt":

Callers

nothing calls this directly

Calls 5

_pumpMethod · 0.95
SkippedClass · 0.85
cipher_nameMethod · 0.45
protocol_nameMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected