| 1 |
Index: sqlx-core/Cargo.toml |
| 2 |
=================================================================== |
| 3 |
--- sqlx-core.orig/Cargo.toml |
| 4 |
+++ sqlx-core/Cargo.toml |
| 5 |
@@ -147,6 +147,10 @@ default-features = false |
| 6 |
version = "0.8.0" |
| 7 |
optional = true |
| 8 |
|
| 9 |
+[dependencies.rustls-webpki] |
| 10 |
+version = "0.101.7" |
| 11 |
+optional = true |
| 12 |
+ |
| 13 |
[dependencies.rustls-pemfile] |
| 14 |
version = "2" |
| 15 |
optional = true |
| 16 |
@@ -213,10 +217,6 @@ version = "2.2.2" |
| 17 |
version = "1.1.2" |
| 18 |
optional = true |
| 19 |
|
| 20 |
-[dependencies.webpki-roots] |
| 21 |
-version = "0.26" |
| 22 |
-optional = true |
| 23 |
- |
| 24 |
[dev-dependencies.sqlx] |
| 25 |
version = "=0.8.3" |
| 26 |
features = [ |
| 27 |
@@ -252,18 +252,14 @@ _tls-rustls = [ |
| 28 |
_tls-rustls-aws-lc-rs = [ |
| 29 |
"_tls-rustls", |
| 30 |
"rustls/aws-lc-rs", |
| 31 |
- "webpki-roots", |
| 32 |
+ "rustls-native-certs", |
| 33 |
+ "dep:rustls-webpki", |
| 34 |
] |
| 35 |
_tls-rustls-ring-native-roots = [ |
| 36 |
"_tls-rustls", |
| 37 |
"rustls/ring", |
| 38 |
"rustls-native-certs", |
| 39 |
] |
| 40 |
-_tls-rustls-ring-webpki = [ |
| 41 |
- "_tls-rustls", |
| 42 |
- "rustls/ring", |
| 43 |
- "webpki-roots", |
| 44 |
-] |
| 45 |
any = [] |
| 46 |
default = [] |
| 47 |
json = [ |
| 48 |
Index: sqlx-core/src/net/tls/tls_rustls.rs |
| 49 |
=================================================================== |
| 50 |
--- sqlx-core.orig/src/net/tls/tls_rustls.rs |
| 51 |
+++ sqlx-core/src/net/tls/tls_rustls.rs |
| 52 |
@@ -134,9 +134,9 @@ where |
| 53 |
.with_no_client_auth() |
| 54 |
} |
| 55 |
} else { |
| 56 |
- #[cfg(any(feature = "_tls-rustls-aws-lc-rs", feature = "_tls-rustls-ring-webpki"))] |
| 57 |
- let mut cert_store = certs_from_webpki(); |
| 58 |
- #[cfg(feature = "_tls-rustls-ring-native-roots")] |
| 59 |
+ //#[cfg(any(feature = "_tls-rustls-aws-lc-rs", feature = "_tls-rustls-ring-webpki"))] |
| 60 |
+ //let mut cert_store = certs_from_webpki(); |
| 61 |
+ //#[cfg(feature = "_tls-rustls-ring-native-roots")] |
| 62 |
let mut cert_store = certs_from_native_store(); |
| 63 |
|
| 64 |
if let Some(ca) = tls_config.root_cert_path { |
| 65 |
@@ -213,12 +213,12 @@ fn private_key_from_pem(pem: Vec<u8>) -> |
| 66 |
} |
| 67 |
} |
| 68 |
|
| 69 |
-#[cfg(any(feature = "_tls-rustls-aws-lc-rs", feature = "_tls-rustls-ring-webpki"))] |
| 70 |
+/*#[cfg(any(feature = "_tls-rustls-aws-lc-rs", feature = "_tls-rustls-ring-webpki"))] |
| 71 |
fn certs_from_webpki() -> RootCertStore { |
| 72 |
RootCertStore::from_iter(webpki_roots::TLS_SERVER_ROOTS.iter().cloned()) |
| 73 |
-} |
| 74 |
+}*/ |
| 75 |
|
| 76 |
-#[cfg(feature = "_tls-rustls-ring-native-roots")] |
| 77 |
+//#[cfg(feature = "_tls-rustls-ring-native-roots")] |
| 78 |
fn certs_from_native_store() -> RootCertStore { |
| 79 |
let mut root_cert_store = RootCertStore::empty(); |
| 80 |
|