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/hmac.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/hmac.rs')
| -rw-r--r-- | src/crypto/hmac.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/hmac.rs b/src/crypto/hmac.rs index 4a0c3e77..cad96fa4 100644 --- a/src/crypto/hmac.rs +++ b/src/crypto/hmac.rs @@ -47,7 +47,7 @@ pub fn HMAC(ht: hash::HashType, key: &[u8]) -> HMAC { impl HMAC { pub fn update(&mut self, data: &[u8]) { unsafe { - ffi::HMAC_Update(&mut self.ctx, data.as_ptr(), data.len() as c_uint) + ffi::HMAC_Update(&mut self.ctx, data.as_ptr(), data.len() as c_uint); } } |