(self)
| 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 |
nothing calls this directly
no test coverage detected