| 1 |
Description: Relax openssl-probe to 0.2 |
| 2 |
Author: Simon Quigley <[email protected]> |
| 3 |
Origin: vendor |
| 4 |
Forwarded: not-needed |
| 5 |
Last-Update: 2026-08-08 |
| 6 |
--- |
| 7 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 8 |
--- a/Cargo.toml |
| 9 |
+++ b/Cargo.toml |
| 10 |
@@ -187,7 +187,7 @@ features = ["formatting"] |
| 11 |
version = "2.5.4" |
| 12 |
|
| 13 |
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.openssl-probe] |
| 14 |
-version = "0.1" |
| 15 |
+version = "0.2" |
| 16 |
optional = true |
| 17 |
|
| 18 |
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.openssl-sys] |
| 19 |
--- a/src/lib.rs |
| 20 |
+++ b/src/lib.rs |
| 21 |
@@ -892,7 +892,9 @@ fn openssl_env_init() { |
| 22 |
// dynamic linkage (plus they have some weird modifications to OpenSSL which |
| 23 |
// means we wouldn't want to link statically). |
| 24 |
#[allow(deprecated)] // FIXME: use init_openssl_env_vars instead |
| 25 |
- openssl_probe::init_ssl_cert_env_vars(); |
| 26 |
+ unsafe { |
| 27 |
+ openssl_probe::try_init_openssl_env_vars(); |
| 28 |
+ } |
| 29 |
} |
| 30 |
|
| 31 |
#[cfg(any( |