diff options
| author | Gleb Kozyrev <[email protected]> | 2015-01-21 18:33:48 +0200 |
|---|---|---|
| committer | Gleb Kozyrev <[email protected]> | 2015-01-21 21:56:56 +0200 |
| commit | cb0898df37374ac99b56d40f6e933a8c4bb4cec8 (patch) | |
| tree | 1eee10dde3a4c86ecd773e0da1d8bc8e2759763c /src/crypto/symm.rs | |
| parent | Release v0.2.16 (diff) | |
| download | rust-openssl-cb0898df37374ac99b56d40f6e933a8c4bb4cec8.tar.xz rust-openssl-cb0898df37374ac99b56d40f6e933a8c4bb4cec8.zip | |
Bring ffi definitions closer to the originals
Add missing return types and fix imprecise type translations.
Repair the fallout in the openssl crate.
Diffstat (limited to 'src/crypto/symm.rs')
| -rw-r--r-- | src/crypto/symm.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/symm.rs b/src/crypto/symm.rs index ccff62bb..922137c0 100644 --- a/src/crypto/symm.rs +++ b/src/crypto/symm.rs @@ -100,7 +100,7 @@ impl Crypter { key.as_ptr(), iv.as_ptr(), mode - ) + ); } } @@ -112,7 +112,7 @@ impl Crypter { unsafe { let sum = data.len() + (self.blocksize as usize); let mut res = repeat(0u8).take(sum).collect::<Vec<_>>(); - let mut reslen = sum as u32; + let mut reslen = sum as c_int; ffi::EVP_CipherUpdate( self.ctx, |