From a154ceeed22777b62b006e6cd11463a35e76abca Mon Sep 17 00:00:00 2001 From: Valerii Hiora Date: Tue, 30 Sep 2014 09:39:21 +0300 Subject: Unification and explicity in FFI type decls --- src/crypto/symm.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/crypto') diff --git a/src/crypto/symm.rs b/src/crypto/symm.rs index a3664bc0..a92f7753 100644 --- a/src/crypto/symm.rs +++ b/src/crypto/symm.rs @@ -22,7 +22,7 @@ pub enum Type { RC4_128, } -fn evpc(t: Type) -> (ffi::EVP_CIPHER, uint, uint) { +fn evpc(t: Type) -> (*const ffi::EVP_CIPHER, uint, uint) { unsafe { match t { AES_128_ECB => (ffi::EVP_aes_128_ecb(), 16u, 16u), @@ -42,8 +42,8 @@ fn evpc(t: Type) -> (ffi::EVP_CIPHER, uint, uint) { /// Represents a symmetric cipher context. pub struct Crypter { - evp: ffi::EVP_CIPHER, - ctx: ffi::EVP_CIPHER_CTX, + evp: *const ffi::EVP_CIPHER, + ctx: *mut ffi::EVP_CIPHER_CTX, keylen: uint, blocksize: uint } -- cgit v1.2.3