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

Method m2i

scapy/layers/kerberos.py:2300–2306  ·  view source on GitHub ↗
(self, pkt, s)

Source from the content-addressed store, hash-verified

2298
2299class _Error_Field(ASN1F_STRING_PacketField):
2300 def m2i(self, pkt, s):
2301 val = super(_Error_Field, self).m2i(pkt, s)
2302 if not val[0].val:
2303 return val
2304 if pkt.dataType.val == 3: # KERB_ERR_TYPE_EXTENDED
2305 return KERB_EXT_ERROR(val[0].val, _underlayer=pkt), val[1]
2306 return val
2307
2308
2309class KERB_ERROR_DATA(ASN1_Packet):

Callers 7

m2iMethod · 0.45
m2iMethod · 0.45
m2iMethod · 0.45
m2iMethod · 0.45
m2iMethod · 0.45
m2iMethod · 0.45
m2iMethod · 0.45

Calls 1

KERB_EXT_ERRORClass · 0.85

Tested by

no test coverage detected