Skip to main content

KeyLog

Trait KeyLog 

Source
pub trait KeyLog:
    Send
    + Sync
    + Debug {
    // Required method
    fn log(&self, label: &str, client_random: &[u8], secret: &[u8]);
}
Expand description

Trait for receiving TLS session secrets.

Implementations are responsible for recording the label, client random, and secret triple in the NSS Key Log Format used by Wireshark and other tools.

Implementors must be Send + Sync + fmt::Debug.

Required Methods§

Source

fn log(&self, label: &str, client_random: &[u8], secret: &[u8])

Record a session secret.

§Parameters
  • label — the NSS key log label, e.g. "CLIENT_RANDOM".
  • client_random — the 32-byte client random from the ClientHello.
  • secret — the session secret bytes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§