MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / __call__

Method __call__

mitmproxy/net/tls.py:123–130  ·  view source on GitHub ↗
(self, connection: SSL.Connection, keymaterial: bytes)

Source from the content-addressed store, hash-verified

121 __name__ = "MasterSecretLogger"
122
123 def __call__(self, connection: SSL.Connection, keymaterial: bytes) -> None:
124 with self.lock:
125 if self.f is None:
126 self.filename.parent.mkdir(parents=True, exist_ok=True)
127 self.f = self.filename.open("ab")
128 self.f.write(b"\n")
129 self.f.write(keymaterial + b"\n")
130 self.f.flush()
131
132 def close(self):
133 with self.lock:

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected