Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enable_key_log #112

Merged
merged 2 commits into from
Dec 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 provided by `SSLKEYLOGFILE` environment variable.
BiagioFesta marked this conversation as resolved.
Show resolved Hide resolved
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
Loading