diff --git a/openssl/src/cipher.rs b/openssl/src/cipher.rs index 744ff7343250d36cf4d993f9a80543b77f77c80c..dfed73b37d4e835060f9dbc34e44ab5dee6f55fb 100644 --- a/openssl/src/cipher.rs +++ b/openssl/src/cipher.rs @@ -8,6 +8,8 @@ cfg_if! { if #[cfg(any(ossl110, libressl273))] { use ffi::{EVP_CIPHER_block_size, EVP_CIPHER_iv_length, EVP_CIPHER_key_length}; } else { + use libc::c_int; + #[allow(bad_style)] pub unsafe fn EVP_CIPHER_iv_length(ptr: *const ffi::EVP_CIPHER) -> c_int { (*ptr).iv_len diff --git a/openssl/src/symm.rs b/openssl/src/symm.rs index 68a42c291011ffff39116d0a5cac89a25a857265..c5987e4701b3836904b3c69dc4a0df6b4ca8e802 100644 --- a/openssl/src/symm.rs +++ b/openssl/src/symm.rs @@ -735,6 +735,8 @@ cfg_if! { if #[cfg(any(ossl110, libressl273))] { use ffi::{EVP_CIPHER_block_size, EVP_CIPHER_iv_length, EVP_CIPHER_key_length}; } else { + use libc::c_int; + #[allow(bad_style)] pub unsafe fn EVP_CIPHER_iv_length(ptr: *const ffi::EVP_CIPHER) -> c_int { (*ptr).iv_len