proto: take advantage of rustls::quic::Suite being Copy

This commit is contained in:
Dirkjan Ochtman
2024-05-02 22:30:33 +02:00
committed by Benjamin Saunders
parent d5fc528930
commit 5b722706b3
2 changed files with 3 additions and 9 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ bytes = "1"
rustc-hash = "1.1"
rand = "0.8"
ring = { version = "0.17", optional = true }
rustls = { version = "0.23", default-features = false, features = ["ring", "std"], optional = true }
rustls = { version = "0.23.5", default-features = false, features = ["ring", "std"], optional = true }
rustls-platform-verifier = { version = "0.3", optional = true }
slab = "0.4"
thiserror = "1.0.21"
+2 -8
View File
@@ -321,10 +321,7 @@ impl crypto::ClientConfig for QuicClientConfig {
)
.unwrap(),
),
suite: Suite {
suite: self.initial.suite,
quic: self.initial.quic,
},
suite: self.initial,
}))
}
}
@@ -431,10 +428,7 @@ impl crypto::ServerConfig for QuicServerConfig {
rustls::quic::ServerConnection::new(self.inner.clone(), version, to_vec(params))
.unwrap(),
),
suite: Suite {
suite: self.initial.suite,
quic: self.initial.quic,
},
suite: self.initial,
})
}