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

Method _getPACAttributes

scapy/modules/ticketer.py:1862–1877  ·  view source on GitHub ↗
(self, pac, element)

Source from the content-addressed store, hash-verified

1860 )
1861
1862 def _getPACAttributes(self, pac, element):
1863 pacAttributes = pac.getPayload(0x00000011)
1864 if not pacAttributes:
1865 pac.Buffers.append(PAC_INFO_BUFFER(ulType=0x00000011))
1866 pacAttributes = PAC_ATTRIBUTES_INFO(Flags=0)
1867 flags = str(pacAttributes.Flags[0]).split("+")
1868 self._data["pacAttributes"] = {}
1869 self._make_checkbox(
1870 element,
1871 [
1872 "PAC_WAS_REQUESTED",
1873 "PAC_WAS_GIVEN_IMPLICITLY",
1874 ],
1875 flags,
1876 self._data["pacAttributes"],
1877 )
1878
1879 def _getPACRequestor(self, pac, element):
1880 pacRequestor = pac.getPayload(0x00000012)

Callers 1

edit_ticketMethod · 0.95

Calls 5

_make_checkboxMethod · 0.95
PAC_INFO_BUFFERClass · 0.90
PAC_ATTRIBUTES_INFOClass · 0.90
getPayloadMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected