MCPcopy Create free account
hub / github.com/mozilla/cipherscan / parse

Method parse

cscan/extensions.py:40–47  ·  view source on GitHub ↗

Deserialise the extension from binary data.

(self, parser)

Source from the content-addressed store, hash-verified

38 return writer.bytes
39
40 def parse(self, parser):
41 """Deserialise the extension from binary data."""
42 if parser.getRemainingLength() == 0:
43 self.renegotiated_connection = None
44 return
45
46 self.renegotiated_connection = parser.getVarBytes(1)
47 return self
48
49 def __repr__(self):
50 """Human readable representation of extension."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected