MCPcopy Index your code
hub / github.com/secdev/scapy / _SaslCredentialsField

Class _SaslCredentialsField

scapy/layers/ldap.py:315–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314
315class _SaslCredentialsField(ASN1F_STRING_PacketField):
316 def m2i(self, pkt, s):
317 val = super(_SaslCredentialsField, self).m2i(pkt, s)
318 if not val[0].val:
319 return val
320 if pkt.mechanism.val in _SASL_MECHANISMS:
321 return (
322 _SASL_MECHANISMS[pkt.mechanism.val](val[0].val, _underlayer=pkt),
323 val[1],
324 )
325 return val
326
327
328class LDAP_Authentication_SaslCredentials(ASN1_Packet):

Calls

no outgoing calls

Tested by

no test coverage detected