diff options
| author | Valerii Hiora <[email protected]> | 2014-09-30 09:39:21 +0300 |
|---|---|---|
| committer | Valerii Hiora <[email protected]> | 2014-09-30 09:39:21 +0300 |
| commit | a154ceeed22777b62b006e6cd11463a35e76abca (patch) | |
| tree | cbfcdf8a2c3297164ef29a854e6469441d96c064 /src/crypto | |
| parent | Fixed mut_null deprecation warnings (diff) | |
| download | rust-openssl-a154ceeed22777b62b006e6cd11463a35e76abca.tar.xz rust-openssl-a154ceeed22777b62b006e6cd11463a35e76abca.zip | |
Unification and explicity in FFI type decls
Diffstat (limited to 'src/crypto')
| -rw-r--r-- | src/crypto/symm.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |