0.34.9
This commit is contained in:
1 parent
70388578cb
commit
2b7c67d755
22 files changed
+369
-59
No files matched your search
+1
-10
@@ -34,16 +34,7 @@ pub fn crypto(
|
||||
policy.allows_http3(),
|
||||
"HTTP/3 requires TLS 1.3 and a TLS 1.3 cipher suite"
|
||||
);
|
||||
let mut provider = rustls::crypto::ring::default_provider();
|
||||
if !policy.cipher_suites.is_empty() {
|
||||
provider.cipher_suites.retain(|suite| {
|
||||
let name = format!("{:?}", suite.suite());
|
||||
policy
|
||||
.cipher_suites
|
||||
.iter()
|
||||
.any(|selected| selected == &name)
|
||||
});
|
||||
}
|
||||
let provider = crate::tls::provider_for(policy)?;
|
||||
let mut quic = rustls::ServerConfig::builder_with_provider(Arc::new(provider))
|
||||
.with_protocol_versions(&[&rustls::version::TLS13])?
|
||||
.with_no_client_auth()
|
||||
|
||||
Reference in new issue
Block a user