File: 2006_rustls-native-certs-0.7.patch

package info (click to toggle)
rust-hyper-rustls-0.24 0.24.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 348 kB
  • sloc: sh: 47; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 946 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
Index: hyper-rustls-0.24/Cargo.toml
===================================================================
--- hyper-rustls-0.24.orig/Cargo.toml
+++ hyper-rustls-0.24/Cargo.toml
@@ -65,7 +65,7 @@ version = "0.21.6"
 default-features = false
 
 [dependencies.rustls-native-certs]
-version = "0.6"
+version = "0.7"
 optional = true
 
 [dependencies.tokio]
Index: hyper-rustls-0.24/src/config.rs
===================================================================
--- hyper-rustls-0.24.orig/src/config.rs
+++ hyper-rustls-0.24/src/config.rs
@@ -30,7 +30,7 @@ impl ConfigBuilderExt for ConfigBuilder<
 
         for cert in rustls_native_certs::load_native_certs().expect("could not load platform certs")
         {
-            let cert = rustls::Certificate(cert.0);
+            let cert = rustls::Certificate(cert.as_ref().to_owned());
             match roots.add(&cert) {
                 Ok(_) => valid_count += 1,
                 Err(err) => {