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

Class Authentication

scapy/contrib/postgres.py:193–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191
192
193class Authentication(_ZeroPadding):
194 name = "Authentication Request"
195 fields_desc = [
196 ByteTagField(b"R"),
197 FieldLenField(
198 "len", None, length_of="optional", fmt="I", adjust=lambda pkt, x: x + 8
199 ),
200 IntEnumField("method", default=0, enum=AUTH_CODES),
201 StrLenField("optional", None, length_from=lambda pkt: pkt.len - 8),
202 ]
203
204
205class ParameterStatus(_ZeroPadding):

Callers

nothing calls this directly

Calls 4

FieldLenFieldClass · 0.90
IntEnumFieldClass · 0.90
StrLenFieldClass · 0.90
ByteTagFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…