Expand description
TLS handshakes.
This is a session-level subscription that delivers parsed TLS handshakes and associated connection metadata. Only the first TLS handshake in a connection is parsed; subsequent encrypted messages are dropped.
§Example
Prints the chosen cipher suite of TLS handshakes with calendar.google.com.
#[filter("tls.sni = 'calendar.google.com'")]
fn main() {
let config = default_config();
let cb = |tls: TlsHandshake| {
println!("{}", tls.data.cipher());
};
let mut runtime = Runtime::new(config, filter, cb).unwrap();
runtime.run();
}Structs§
- TlsHandshake
- A parsed TLS handshake and connection metadata.