aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-09-30 03:15:42 -0400
committerSteven Fackler <[email protected]>2014-09-30 03:15:42 -0400
commit73885dad0263e6203cf33211857e3c25ff52aa99 (patch)
treecbfcdf8a2c3297164ef29a854e6469441d96c064 /src/crypto
parentMerge pull request #56 from vhbit/single-ffi (diff)
parentUnification and explicity in FFI type decls (diff)
downloadrust-openssl-73885dad0263e6203cf33211857e3c25ff52aa99.tar.xz
rust-openssl-73885dad0263e6203cf33211857e3c25ff52aa99.zip
Merge pull request #57 from vhbit/mut-cleanup
Clean up of mut/const types in `ffi` and also `mut_null` -> `null_mut`
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/symm.rs6
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
}