MCPcopy Create free account
hub / github.com/mozilla/cipherscan / __init__

Method __init__

cscan/scanner.py:22–28  ·  view source on GitHub ↗

Initialize parser object.

(self, version=(3, 1),
                 cipher_suite=CipherSuite.TLS_DHE_RSA_WITH_AES_128_CBC_SHA,
                 certificate_type=CertificateType.x509)

Source from the content-addressed store, hash-verified

20 """Inteligent parser for handshake messages."""
21
22 def __init__(self, version=(3, 1),
23 cipher_suite=CipherSuite.TLS_DHE_RSA_WITH_AES_128_CBC_SHA,
24 certificate_type=CertificateType.x509):
25 """Initialize parser object."""
26 self.version = version
27 self.cipher_suite = cipher_suite
28 self.certificate_type = certificate_type
29
30 def parse(self, parser):
31 """Parse a handshake message."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected