1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Passive TLS handshake observer.
//!
//! Bridges [`tls-parser`](https://crates.io/crates/tls-parser) into
//! `flowscope`'s [`Reassembler`](crate::Reassembler). Receives bytes
//! from the per-flow TCP stream, emits parsed [`TlsClientHello`] /
//! [`TlsServerHello`] / [`TlsAlert`] events via a user-supplied
//! [`TlsHandler`].
//!
//! # Quick start
//!
//! ```no_run
//! use flowscope::tls::{TlsClientHello, TlsFactory, TlsHandler};
//!
//! struct Logger;
//! impl TlsHandler for Logger {
//! fn on_client_hello(&self, h: &TlsClientHello) {
//! println!("SNI: {:?}, ALPN: {:?}", h.sni, h.alpn);
//! }
//! }
//! ```
//!
//! # Scope
//!
//! - **Passive** observation only — no decryption, no MITM.
//! - ClientHello, ServerHello, Alert from the unencrypted handshake.
//! - SNI / ALPN / supported versions / cipher list / extension order.
//! - TLS 1.0 — TLS 1.3 (visibility limited after ChangeCipherSpec
//! in 1.2 and after ServerHello in 1.3 since records are
//! encrypted onward).
//! - Optional [JA3](https://github.com/salesforce/ja3) fingerprinting
//! behind the `ja3` feature.
pub use ;
pub use Error;
pub use ;
pub use *;