MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / decodeAuthResponseSecurityBlob

Function decodeAuthResponseSecurityBlob

pager_lib/smb/securityblob.py:62–70  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

60
61
62def decodeAuthResponseSecurityBlob(data):
63 try:
64 d, _ = decoder.decode(data, asn1Spec = NegotiationToken())
65 nt = d.getComponentByName('negTokenTarg')
66
67 result = nt.getComponentByName('negResult')
68 return int(result)
69 except Exception as ex:
70 raise BadSecurityBlobError(str(ex))
71
72
73#

Callers

nothing calls this directly

Calls 4

NegotiationTokenClass · 0.85
getComponentByNameMethod · 0.80
decodeMethod · 0.45

Tested by

no test coverage detected