Skip to content

Commit 6f17a86

Browse files
committed
refactor: use re-exported rustls::pki_types
1 parent 4eb77d5 commit 6f17a86

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ rand-old = { package = "rand", version = "0.8" }
8686
rand = { workspace = true }
8787
regex = { workspace = true }
8888
rusqlite = { workspace = true, features = ["sqlcipher"] }
89-
rustls-pki-types = "1.12.0"
9089
sanitize-filename = { workspace = true }
9190
sdp = "0.10.0"
9291
serde_json = { workspace = true }

src/net/tls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub async fn wrap_rustls<'a>(
124124
config.enable_sni = use_sni;
125125

126126
let tls = tokio_rustls::TlsConnector::from(Arc::new(config));
127-
let name = rustls_pki_types::ServerName::try_from(hostname)?.to_owned();
127+
let name = tokio_rustls::rustls::pki_types::ServerName::try_from(hostname)?.to_owned();
128128
let tls_stream = tls.connect(name, stream).await?;
129129
Ok(tls_stream)
130130
}

0 commit comments

Comments
 (0)