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

Class _EncapsulatedContent_Field

scapy/layers/x509.py:1302–1315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1300
1301
1302class _EncapsulatedContent_Field(ASN1F_STRING_PacketField):
1303 def m2i(self, pkt, s):
1304 val = super(_EncapsulatedContent_Field, self).m2i(pkt, s)
1305 if not val[0].val:
1306 return val
1307
1308 # Get encapsulated value from its type
1309 if pkt.eContentType.val in _CMS_ENCAPSULATED:
1310 return (
1311 _CMS_ENCAPSULATED[pkt.eContentType.val](val[0].val, _underlayer=pkt),
1312 val[1],
1313 )
1314
1315 return val
1316
1317
1318class CMS_EncapsulatedContentInfo(ASN1_Packet):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…