We extract cipher suites candidates from the client's proposition.
(self)
| 332 | |
| 333 | @ATMT.state() |
| 334 | def HANDLED_CLIENTHELLO(self): |
| 335 | """ |
| 336 | We extract cipher suites candidates from the client's proposition. |
| 337 | """ |
| 338 | if isinstance(self.mykey, PrivKeyRSA): |
| 339 | kx = "RSA" |
| 340 | elif isinstance(self.mykey, PrivKeyECDSA): |
| 341 | kx = "ECDSA" |
| 342 | elif isinstance(self.mykey, PrivKeyEdDSA): |
| 343 | kx = "" |
| 344 | if get_usable_ciphersuites(self.cur_pkt.ciphers, kx): |
| 345 | raise self.PREPARE_SERVERFLIGHT1() |
| 346 | raise self.NO_USABLE_CIPHERSUITE() |
| 347 | |
| 348 | @ATMT.state() |
| 349 | def NO_USABLE_CIPHERSUITE(self): |
nothing calls this directly
no test coverage detected