pub struct KeyLogEntries {
pub master_secret: Option<[u8; 48]>,
pub client_handshake_traffic_secret: Option<Vec<u8>>,
pub server_handshake_traffic_secret: Option<Vec<u8>>,
pub client_traffic_secret_0: Option<Vec<u8>>,
pub server_traffic_secret_0: Option<Vec<u8>>,
pub exporter_secret: Option<Vec<u8>>,
pub early_exporter_secret: Option<Vec<u8>>,
pub client_early_traffic_secret: Option<Vec<u8>>,
}Expand description
Collection of key log entries for a single TLS session.
A TLS 1.3 session may have multiple entries (handshake secrets, traffic secrets). A TLS 1.2 session typically has just one CLIENT_RANDOM entry.
Fields§
§master_secret: Option<[u8; 48]>TLS 1.2 master secret (from CLIENT_RANDOM entry)
client_handshake_traffic_secret: Option<Vec<u8>>TLS 1.3 client handshake traffic secret
server_handshake_traffic_secret: Option<Vec<u8>>TLS 1.3 server handshake traffic secret
client_traffic_secret_0: Option<Vec<u8>>TLS 1.3 client application traffic secret (initial)
server_traffic_secret_0: Option<Vec<u8>>TLS 1.3 server application traffic secret (initial)
exporter_secret: Option<Vec<u8>>TLS 1.3 exporter secret
early_exporter_secret: Option<Vec<u8>>TLS 1.3 early exporter secret (0-RTT)
client_early_traffic_secret: Option<Vec<u8>>TLS 1.3 client early traffic secret (0-RTT)
Implementations§
Source§impl KeyLogEntries
impl KeyLogEntries
Sourcepub fn has_tls12_keys(&self) -> bool
pub fn has_tls12_keys(&self) -> bool
Check if this has TLS 1.2 keys.
Sourcepub fn has_tls13_app_keys(&self) -> bool
pub fn has_tls13_app_keys(&self) -> bool
Check if this has TLS 1.3 application keys.
Sourcepub fn has_tls13_handshake_keys(&self) -> bool
pub fn has_tls13_handshake_keys(&self) -> bool
Check if this has TLS 1.3 handshake keys.
Trait Implementations§
Source§impl Clone for KeyLogEntries
impl Clone for KeyLogEntries
Source§fn clone(&self) -> KeyLogEntries
fn clone(&self) -> KeyLogEntries
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyLogEntries
impl Debug for KeyLogEntries
Source§impl Default for KeyLogEntries
impl Default for KeyLogEntries
Source§fn default() -> KeyLogEntries
fn default() -> KeyLogEntries
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KeyLogEntries
impl RefUnwindSafe for KeyLogEntries
impl Send for KeyLogEntries
impl Sync for KeyLogEntries
impl Unpin for KeyLogEntries
impl UnwindSafe for KeyLogEntries
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more