@@ -48,11 +48,8 @@ fn cert_dirs_iter() -> impl Iterator<Item = &'static Path> {
4848 . filter ( |p| p. exists ( ) )
4949}
5050
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) ]
5653#[ deprecated( note = "this function is not safe, use `init_openssl_env_vars` instead" ) ]
5754pub fn init_ssl_cert_env_vars ( ) {
5855 unsafe {
@@ -80,15 +77,8 @@ pub unsafe fn init_openssl_env_vars() {
8077 try_init_openssl_env_vars ( ) ;
8178}
8279
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) ]
9282#[ deprecated( note = "use try_init_openssl_env_vars instead, this function is not safe" ) ]
9383pub fn try_init_ssl_cert_env_vars ( ) -> bool {
9484 unsafe { try_init_openssl_env_vars ( ) }
0 commit comments