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

Class ServerName

scapy/layers/tls/extensions.py:182–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181
182class ServerName(Packet):
183 name = "HostName"
184 fields_desc = [ByteEnumField("nametype", 0, _tls_server_name_types),
185 FieldLenField("namelen", None, length_of="servername"),
186 StrLenField("servername", "",
187 length_from=lambda pkt: pkt.namelen)]
188
189 def guess_payload_class(self, p):
190 return Padding
191
192
193class ServerListField(PacketListField):

Callers 2

Calls 3

ByteEnumFieldClass · 0.90
FieldLenFieldClass · 0.90
StrLenFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…