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

Class _ASN1CertAndExt

scapy/layers/tls/handshake.py:977–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975
976
977class _ASN1CertAndExt(_GenericTLSSessionInheritance):
978 name = "Certificate and Extensions"
979 fields_desc = [_ASN1CertField("cert", ""),
980 FieldLenField("extlen", None, length_of="ext"),
981 _ExtensionsField("ext", [],
982 length_from=lambda pkt: pkt.extlen)]
983
984 def extract_padding(self, s):
985 return b"", s
986
987
988class _ASN1CertAndExtListField(PacketListField):

Calls 3

FieldLenFieldClass · 0.90
_ExtensionsFieldClass · 0.90
_ASN1CertFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…