(self)
| 4471 | @unittest.skipUnless(CAN_SET_CLIENT_SIGALGS, |
| 4472 | "SSL library doesn't support setting client sigalgs") |
| 4473 | def test_client_sigalgs(self): |
| 4474 | # no mutual auth, so cient_sigalg should be None |
| 4475 | client_context, server_context, hostname = testing_context() |
| 4476 | stats = server_params_test(client_context, server_context, |
| 4477 | chatty=True, connectionchatty=True, |
| 4478 | sni_name=hostname) |
| 4479 | if CAN_GET_SELECTED_OPENSSL_SIGALG: |
| 4480 | self.assertIsNone(stats['client_sigalg']) |
| 4481 | |
| 4482 | # server auto, client rsa_pss_rsae_sha384 |
| 4483 | sigalg = "rsa_pss_rsae_sha384" |
| 4484 | client_context, server_context, hostname = \ |
| 4485 | testing_context(client_cert=SIGNED_CERTFILE) |
| 4486 | client_context.set_client_sigalgs(sigalg) |
| 4487 | stats = server_params_test(client_context, server_context, |
| 4488 | chatty=True, connectionchatty=True, |
| 4489 | sni_name=hostname) |
| 4490 | if CAN_GET_SELECTED_OPENSSL_SIGALG: |
| 4491 | self.assertEqual(stats['client_sigalg'], sigalg) |
| 4492 | |
| 4493 | @unittest.skipUnless(CAN_SET_CLIENT_SIGALGS, |
| 4494 | "SSL library doesn't support setting client sigalgs") |
nothing calls this directly
no test coverage detected