Skip to content

Commit

Permalink
Add enable_key_log
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Rets authored and Dima Rets committed Dec 14, 2023
1 parent b8e66b1 commit e6adca2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wtransport/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,12 @@ impl ClientConfigBuilder<states::WantsTransportConfigClient> {
self.0.dns_resolver = dns_resolver;
self
}

/// Write key material for debugging into file path provided by `SSLKEYLOGFILE` environment variable.
pub fn enable_key_log(mut self) -> Self {
self.0.tls_config.key_log = Arc::new(rustls::KeyLogFile::new());
self
}
}

impl Default for ServerConfigBuilder<states::WantsBindAddress> {
Expand Down

0 comments on commit e6adca2

Please sign in to comment.