Skip to content

Commit

Permalink
proto: restrict default rustls server config to TLS 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Apr 21, 2024
1 parent bd324a4 commit 702eaca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quinn-proto/src/crypto/rustls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ impl QuicServerConfig {
let mut inner = rustls::ServerConfig::builder_with_provider(
rustls::crypto::ring::default_provider().into(),
)
.with_safe_default_protocol_versions()
.with_protocol_versions(&[&rustls::version::TLS13])
.unwrap() // The *ring* default provider supports TLS 1.3
.with_no_client_auth()
.with_single_cert(cert_chain, key)
Expand Down

0 comments on commit 702eaca

Please sign in to comment.