1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-31 10:46:58 +02:00

feat: add rustls v0.22 support (#513)

This commit is contained in:
Rob Ede
2023-12-06 04:04:39 +00:00
committed by GitHub
parent 9edc0b393a
commit 951e46186b
10 changed files with 248 additions and 49 deletions

View File

@@ -39,7 +39,7 @@ pub mod reexports {
pub fn native_roots_cert_store() -> io::Result<RootCertStore> {
let mut root_certs = RootCertStore::empty();
for cert in rustls_native_certs::load_native_certs()? {
for cert in rustls_native_certs_06::load_native_certs()? {
root_certs
.add(&tokio_rustls_023::rustls::Certificate(cert.0))
.unwrap();