Skip to content

Commit 2739e49

Browse files
RUST-2144 Remove use of deprecated openssl_probe method (#1294)
1 parent f443d4b commit 2739e49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/runtime/tls_openssl.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ fn make_openssl_connector(cfg: TlsOptions) -> Result<SslConnector> {
113113

114114
fn init_trust() {
115115
static ONCE: Once = Once::new();
116-
ONCE.call_once(openssl_probe::init_ssl_cert_env_vars);
116+
// nosemgrep: unsafe-usage
117+
ONCE.call_once(|| unsafe {
118+
// mongodb rating: No Fix Needed
119+
openssl_probe::init_openssl_env_vars()
120+
})
117121
}
118122

119123
fn make_ssl_stream(

0 commit comments

Comments
 (0)