@@ -48,11 +48,8 @@ fn cert_dirs_iter() -> impl Iterator<Item = &'static Path> {
48
48
. filter ( |p| p. exists ( ) )
49
49
}
50
50
51
- /// Probe for SSL certificates on the system, then configure the SSL certificate `SSL_CERT_FILE`
52
- /// and `SSL_CERT_DIR` environment variables in this process for OpenSSL to use.
53
- ///
54
- /// Preconfigured values in the environment variables will not be overwritten if the paths they
55
- /// point to exist and are accessible.
51
+ /// Deprecated as this isn't sound, use [`init_openssl_env_vars`] instead.
52
+ #[ doc( hidden) ]
56
53
#[ deprecated( note = "this function is not safe, use `init_openssl_env_vars` instead" ) ]
57
54
pub fn init_ssl_cert_env_vars ( ) {
58
55
unsafe {
@@ -80,15 +77,8 @@ pub unsafe fn init_openssl_env_vars() {
80
77
try_init_openssl_env_vars ( ) ;
81
78
}
82
79
83
- /// Probe for SSL certificates on the system, then configure the SSL certificate `SSL_CERT_FILE`
84
- /// and `SSL_CERT_DIR` environment variables in this process for OpenSSL to use.
85
- ///
86
- /// Preconfigured values in the environment variables will not be overwritten if the paths they
87
- /// point to exist and are accessible.
88
- ///
89
- /// Returns `true` if any certificate file or directory was found while probing.
90
- /// Combine this with `has_ssl_cert_env_vars()` to check whether previously configured environment
91
- /// variables are valid.
80
+ /// Deprecated as this isn't sound, use [`try_init_openssl_env_vars`] instead.
81
+ #[ doc( hidden) ]
92
82
#[ deprecated( note = "use try_init_openssl_env_vars instead, this function is not safe" ) ]
93
83
pub fn try_init_ssl_cert_env_vars ( ) -> bool {
94
84
unsafe { try_init_openssl_env_vars ( ) }
0 commit comments