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

Class ServerLenField

scapy/layers/tls/extensions.py:199–208  ·  view source on GitHub ↗

There is no length when there are no servernames (as in a ServerHello).

Source from the content-addressed store, hash-verified

197
198
199class ServerLenField(FieldLenField):
200 """
201 There is no length when there are no servernames (as in a ServerHello).
202 """
203
204 def addfield(self, pkt, s, val):
205 if not val:
206 if not pkt.servernames:
207 return s
208 return super(ServerLenField, self).addfield(pkt, s, val)
209
210
211class TLS_Ext_ServerName(TLS_Ext_PrettyPacketList): # RFC 4366

Callers 1

TLS_Ext_ServerNameClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…