Ejemplo n.º 1
0
 def __init__(self, **kwargs):
     Protocol.__init__(self, **kwargs)
     self.payload = None
     self.fields = [
         VersionField("version"),
         RandomField("random"),
         VectorUInt8Field("session_id"),
         CipherSuiteField("cipher_suite"),
         CompressionMethodField("compression_method"),
         ExtensionsField("extensions"),
     ]
Ejemplo n.º 2
0
 def __init__(self, **kwargs):
     Protocol.__init__(self, **kwargs)
     self.payload = None
     self.fields = [
         VersionField("version"),
         UInt16Field("cipher_suites_length", 0),
         UInt16Field("session_id_length", 0),
         UInt16Field("challenge_length", 0),
     ]
     self.cipher_suites = []
     self.session_id = b""
     self.challenge = b""
Ejemplo n.º 3
0
 def __init__(self, **kwargs):
     Protocol.__init__(self, **kwargs)
     self.payload = None
     self.fields = [
         UInt8Field("session_id_hit", 0),
         UInt8Field("certificate_type", 0),
         VersionField("version"),
         UInt16Field("certificate_length", 0),
         UInt16Field("cipher_suites_length", 0),
         UInt16Field("connection_id_length", 0),
     ]
     self.certificate = b""
     self.cipher_suites = []
     self.connection_id = b""
Ejemplo n.º 4
0
 def __init__(self, **kwargs):
     Protocol.__init__(self, **kwargs)
     self.fields = [
         UInt8EnumField(
             "content_type", None, {
                 20: "change_cipher_spec",
                 21: "alert",
                 22: "handshake",
                 23: "application_data",
                 255: None
             }),
         VersionField("version"),
         UInt16Field("length", 0),
     ]
     self.payload_identifier_field = "content_type"
     self.payload_length_field = "length"
Ejemplo n.º 5
0
 def __init__(self, **kwargs):
     Protocol.__init__(self, **kwargs)
     self.payload = None
     self.fields = [VersionField("version"), VectorUInt8Field("cookie")]