MCPcopy Create free account
hub / github.com/secdev/scapy / HANDLED_CLIENTHELLO

Method HANDLED_CLIENTHELLO

scapy/layers/tls/automaton_srv.py:334–346  ·  view source on GitHub ↗

We extract cipher suites candidates from the client's proposition.

(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 3

PREPARE_SERVERFLIGHT1Method · 0.95
NO_USABLE_CIPHERSUITEMethod · 0.95
get_usable_ciphersuitesFunction · 0.90

Tested by

no test coverage detected