aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
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
}