From aa13866f5b6639bf6b342761f565fec6f7ebdb03 Mon Sep 17 00:00:00 2001 From: tottoto Date: Mon, 22 Jan 2024 04:48:42 +0900 Subject: [PATCH] Use rustls-pki-types via rustls crate (#155) --- Cargo.toml | 3 +-- src/tls/rustls_impl.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1cf925a..69f52e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,8 +24,7 @@ mime = {version = "0.3.16", optional = true} multipart = {version = "0.18.0", default-features = false, features = ["client"], optional = true} native-tls = {version = "0.2.10", optional = true} rustls-native-certs = { version = "0.7", optional = true} -rustls-opt-dep = {package = "rustls", version = "0.22.0", optional = true} -rustls-pki-types = "1" +rustls-opt-dep = {package = "rustls", version = "0.22.1", optional = true} serde = {version = "1.0.143", optional = true} serde_json = {version = "1.0.83", optional = true} serde_urlencoded = {version = "0.7.1", optional = true} diff --git a/src/tls/rustls_impl.rs b/src/tls/rustls_impl.rs index 19d0741..da39d6c 100644 --- a/src/tls/rustls_impl.rs +++ b/src/tls/rustls_impl.rs @@ -9,11 +9,11 @@ use rustls::{ danger::{DangerousClientConfigBuilder, HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier}, WebPkiServerVerifier, }, + pki_types::{CertificateDer, ServerName, UnixTime}, ClientConfig, ClientConnection, DigitallySignedStruct, RootCertStore, SignatureScheme, StreamOwned, }; #[cfg(feature = "tls-rustls-native-roots")] use rustls_native_certs::load_native_certs; -use rustls_pki_types::{CertificateDer, ServerName, UnixTime}; #[cfg(feature = "tls-rustls-webpki-roots")] use webpki_roots::TLS_SERVER_ROOTS;