Skip to content

Commit ea540ea

Browse files
committed
Do not call openssl_probe::init_ssl_cert_env_vars() on FreeBSD (rust-lang#1129)
The heuristics in openssl-probe leave the process environment with an invalid value breaking the certificate validation on FreeBSD. FreeBSD has a system truststore managed by certctl(8). Leave it to OpenSSL to do the right thing. Upstream issue: alexcrichton/openssl-probe#37 This fixes rust-lang#1129
1 parent 64017cd commit ea540ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,7 @@ fn init() {
759759
unix,
760760
not(target_os = "macos"),
761761
not(target_os = "ios"),
762+
not(target_os = "freebsd"),
762763
feature = "https"
763764
))]
764765
fn openssl_env_init() {
@@ -880,6 +881,7 @@ fn openssl_env_init() {
880881
windows,
881882
target_os = "macos",
882883
target_os = "ios",
884+
target_os = "freebsd",
883885
not(feature = "https")
884886
))]
885887
fn openssl_env_init() {}

0 commit comments

Comments
 (0)