Commit 4256cfbf authored by Steven Fackler's avatar Steven Fackler
Browse files

Fix some accidentally-public functions

parent 63b50746
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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))
        }
    }