diff --git a/Cargo.toml b/Cargo.toml index 218a44c..ee763f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -80,7 +80,7 @@ package = "tokio-native-tls" [dependencies.real-tokio-rustls] optional = true -version = "0.23" +version = "0.24" package = "tokio-rustls" [dependencies.rustls-native-certs] diff --git a/src/tokio/rustls.rs b/src/tokio/rustls.rs index ff62de3..8f738f8 100644 --- a/src/tokio/rustls.rs +++ b/src/tokio/rustls.rs @@ -45,7 +45,7 @@ where for cert in rustls_native_certs::load_native_certs()? { root_store .add(&Certificate(cert.0)) - .map_err(TlsError::Webpki)?; + .map_err(TlsError::Rustls)?; } } #[cfg(all(