File: 2002_rustls-platform-verifier.patch

package info (click to toggle)
rust-oxhttp 0.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 352 kB
  • sloc: makefile: 2; sh: 1
file content (27 lines) | stat: -rw-r--r-- 1,095 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: use older minor version of crate rustls-platform-verifier
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2025-09-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,7 +21,7 @@
 native-tls = { version = "0.2.11", optional = true }
 rustls = { version = "0.23.27", optional = true, default-features = false, features = ["std", "tls12"] }
 rustls-pki-types = { version = "1.11", optional = true }
-rustls-platform-verifier = { version = "0.6", optional = true }
+rustls-platform-verifier = { version = ">= 0.5.3, <= 0.6", optional = true }
 webpki-roots = { version = ">=0.26,<2.0", optional = true }
 
 [dev-dependencies]
--- a/src/client.rs
+++ b/src/client.rs
@@ -277,7 +277,6 @@
             let rustls_config = RUSTLS_CONFIG.get_or_init(|| {
                 Arc::new(
                     ClientConfig::with_platform_verifier()
-                        .expect("Failed to load the certificate needed to build TLS configuration"),
                 )
             });
             #[cfg(all(