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

Class TlsData

mitmproxy/tls.py:135–152  ·  view source on GitHub ↗

Event data for `tls_start_client`, `tls_start_server`, and `tls_handshake` event hooks.

Source from the content-addressed store, hash-verified

133
134@dataclass
135class TlsData:
136 """
137 Event data for `tls_start_client`, `tls_start_server`, and `tls_handshake` event hooks.
138 """
139
140 conn: connection.Connection
141 """The affected connection."""
142 context: context.Context
143 """The context object for this connection."""
144 ssl_conn: SSL.Connection | None = None
145 """
146 The associated pyOpenSSL `SSL.Connection` object.
147 This will be set by an addon in the `tls_start_*` event hooks.
148 """
149 is_dtls: bool = False
150 """
151 If set to `True`, indicates that it is a DTLS event.
152 """

Callers 3

start_tlsMethod · 0.90
on_handshake_errorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…