Skip to content

Commit

Permalink
Use rustls-pki-types via rustls crate (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Jan 21, 2024
1 parent e25c9f2 commit aa13866
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion src/tls/rustls_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit aa13866

Please sign in to comment.