mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Update rcgen
This commit is contained in:
parent
88fe77479b
commit
3556eb6ed7
11
Cargo.lock
generated
11
Cargo.lock
generated
@ -5138,12 +5138,13 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rcgen"
|
||||
version = "0.12.1"
|
||||
version = "0.13.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "48406db8ac1f3cbc7dcdb56ec355343817958a356ff430259bb07baf7607e1e1"
|
||||
checksum = "54077e1872c46788540de1ea3d7f4ccb1983d12f9aa909b234468676c1a36779"
|
||||
dependencies = [
|
||||
"pem",
|
||||
"ring 0.17.8",
|
||||
"rustls-pki-types",
|
||||
"time",
|
||||
"yasna",
|
||||
]
|
||||
@ -5507,6 +5508,12 @@ dependencies = [
|
||||
"base64 0.21.7",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustls-pki-types"
|
||||
version = "1.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d"
|
||||
|
||||
[[package]]
|
||||
name = "rustls-webpki"
|
||||
version = "0.101.7"
|
||||
|
@ -72,7 +72,7 @@ criterion = { version = "0.5.1", default-features = false, features = [
|
||||
"async_tokio",
|
||||
] }
|
||||
#quic
|
||||
rcgen = { version = "0.12" }
|
||||
rcgen = { version = "0.13.1" }
|
||||
|
||||
[[bench]]
|
||||
name = "speed"
|
||||
|
@ -105,11 +105,11 @@ pub fn quic() -> (ListenAddr, ConnectAddr) {
|
||||
|
||||
trace!("generating self-signed certificate");
|
||||
let cert = rcgen::generate_simple_self_signed(vec![LOCALHOST.into()]).unwrap();
|
||||
let key = cert.serialize_private_key_der();
|
||||
let cert = cert.serialize_der().unwrap();
|
||||
let key = cert.key_pair.serialize_der();
|
||||
let cert = cert.cert.der();
|
||||
|
||||
let key = rustls::PrivateKey(key);
|
||||
let cert = rustls::Certificate(cert);
|
||||
let cert = rustls::Certificate((*cert).to_vec());
|
||||
|
||||
let mut root_store = rustls::RootCertStore::empty();
|
||||
root_store.add(&cert).expect("cannot add cert to rootstore");
|
||||
|
Loading…
Reference in New Issue
Block a user