MCPcopy Index your code
hub / github.com/python/cpython / test_client_sigalgs_mismatch

Method test_client_sigalgs_mismatch

Lib/test/test_ssl.py:4495–4511  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4493 @unittest.skipUnless(CAN_SET_CLIENT_SIGALGS,
4494 "SSL library doesn't support setting client sigalgs")
4495 def test_client_sigalgs_mismatch(self):
4496 client_context, server_context, hostname = \
4497 testing_context(client_cert=SIGNED_CERTFILE)
4498 client_context.set_client_sigalgs("rsa_pss_rsae_sha256")
4499 server_context.set_client_sigalgs("rsa_pss_rsae_sha384")
4500
4501 with self.assertRaises((
4502 ssl.SSLError,
4503 # On handshake failures, some systems raise a ConnectionResetError.
4504 ConnectionResetError,
4505 # On handshake failures, macOS may raise a BrokenPipeError.
4506 # See https://github.com/python/cpython/issues/139504.
4507 BrokenPipeError,
4508 )):
4509 server_params_test(client_context, server_context,
4510 chatty=True, connectionchatty=True,
4511 sni_name=hostname)
4512
4513 def test_server_sigalgs(self):
4514 # server rsa_pss_rsae_sha384, client auto

Callers

nothing calls this directly

Calls 3

testing_contextFunction · 0.85
server_params_testFunction · 0.85
assertRaisesMethod · 0.45

Tested by

no test coverage detected