From 4256cfbf19ecaed4a0d1acd1bfbaff46b698e912 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 18 Oct 2018 11:37:36 -0700 Subject: [PATCH] Fix some accidentally-public functions --- openssl/src/ssl/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 71fa1691..3dc76ea1 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -3693,7 +3693,7 @@ cfg_if! { if #[cfg(ossl110)] { use ffi::{TLS_method, DTLS_method}; - pub unsafe fn get_new_idx(f: ffi::CRYPTO_EX_free) -> c_int { + unsafe fn get_new_idx(f: ffi::CRYPTO_EX_free) -> c_int { ffi::CRYPTO_get_ex_new_index( ffi::CRYPTO_EX_INDEX_SSL_CTX, 0, @@ -3704,7 +3704,7 @@ cfg_if! { ) } - pub unsafe fn get_new_ssl_idx(f: ffi::CRYPTO_EX_free) -> c_int { + unsafe fn get_new_ssl_idx(f: ffi::CRYPTO_EX_free) -> c_int { ffi::CRYPTO_get_ex_new_index( ffi::CRYPTO_EX_INDEX_SSL, 0, @@ -3717,11 +3717,11 @@ cfg_if! { } else { use ffi::{SSLv23_method as TLS_method, DTLSv1_method as DTLS_method}; - pub unsafe fn get_new_idx(f: ffi::CRYPTO_EX_free) -> c_int { + unsafe fn get_new_idx(f: ffi::CRYPTO_EX_free) -> c_int { ffi::SSL_CTX_get_ex_new_index(0, ptr::null_mut(), None, None, Some(f)) } - pub unsafe fn get_new_ssl_idx(f: ffi::CRYPTO_EX_free) -> c_int { + unsafe fn get_new_ssl_idx(f: ffi::CRYPTO_EX_free) -> c_int { ffi::SSL_get_ex_new_index(0, ptr::null_mut(), None, None, Some(f)) } }