Method
__call__
(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
Tested by
no test coverage detected