change mcp server collection to use webpki roots instead of native, since the native roots do not work on android
This commit is contained in:
Generated
+10
@@ -1033,6 +1033,7 @@ dependencies = [
|
||||
"tokio",
|
||||
"tokio-rustls",
|
||||
"tower-service",
|
||||
"webpki-roots",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3722,6 +3723,15 @@ dependencies = [
|
||||
"rustls-pki-types",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "webpki-roots"
|
||||
version = "1.0.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "52f5ee44c96cf55f1b349600768e3ece3a8f26010c05265ab73f945bb1a2eb9d"
|
||||
dependencies = [
|
||||
"rustls-pki-types",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winapi-util"
|
||||
version = "0.1.11"
|
||||
|
||||
Generated
+10
@@ -601,6 +601,7 @@ dependencies = [
|
||||
"tokio",
|
||||
"tokio-rustls",
|
||||
"tower-service",
|
||||
"webpki-roots",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2063,6 +2064,15 @@ dependencies = [
|
||||
"semver",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "webpki-roots"
|
||||
version = "1.0.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "52f5ee44c96cf55f1b349600768e3ece3a8f26010c05265ab73f945bb1a2eb9d"
|
||||
dependencies = [
|
||||
"rustls-pki-types",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "windows-core"
|
||||
version = "0.62.2"
|
||||
|
||||
@@ -21,7 +21,7 @@ libdav = { version = "0.10.5", optional = true }
|
||||
icalendar = { version = "0.17.10", optional = true, features = ["chrono-tz", "recurrence"] }
|
||||
hyper-util = { version = "0.1.20", optional = true }
|
||||
http = { version = "1.4.0", optional = true }
|
||||
hyper-rustls = { version = "0.27.7", optional = true }
|
||||
hyper-rustls = { version = "0.27.7", optional = true, features = ["webpki-roots"]}
|
||||
toml = "1.1.2"
|
||||
|
||||
[features]
|
||||
|
||||
@@ -24,8 +24,7 @@ pub(crate) fn get_caldav_client(
|
||||
password: &str,
|
||||
) -> AuthorizedCaldavClient {
|
||||
let https_connector: HttpsConnector<HttpConnector> = HttpsConnectorBuilder::new()
|
||||
.with_native_roots()
|
||||
.unwrap()
|
||||
.with_webpki_roots()
|
||||
.https_only()
|
||||
.enable_http1()
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user