diff options
| author | Steven Fackler <[email protected]> | 2014-06-29 13:36:02 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-06-29 13:36:02 -0700 |
| commit | 8c40c2ef3527fbcf22f11a517422b371b4626852 (patch) | |
| tree | 03fd71358fd3790628331932a77fd4adf9e55baa /crypto/hmac.rs | |
| parent | Drop to version 0.0.0 (diff) | |
| download | rust-openssl-8c40c2ef3527fbcf22f11a517422b371b4626852.tar.xz rust-openssl-8c40c2ef3527fbcf22f11a517422b371b4626852.zip | |
Update for * -> *const change
Diffstat (limited to 'crypto/hmac.rs')
| -rw-r--r-- | crypto/hmac.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/hmac.rs b/crypto/hmac.rs index d9e53c99..16be0f29 100644 --- a/crypto/hmac.rs +++ b/crypto/hmac.rs @@ -20,7 +20,7 @@ use crypto::hash; #[allow(dead_code)] #[allow(non_camel_case_types)] pub struct HMAC_CTX { - md: *hash::EVP_MD, + md: *mut hash::EVP_MD, md_ctx: hash::EVP_MD_CTX, i_ctx: hash::EVP_MD_CTX, o_ctx: hash::EVP_MD_CTX, @@ -31,8 +31,8 @@ pub struct HMAC_CTX { #[link(name = "crypto")] extern { fn HMAC_CTX_init(ctx: *mut HMAC_CTX); - fn HMAC_Init_ex(ctx: *mut HMAC_CTX, key: *u8, keylen: c_int, md: *hash::EVP_MD, imple: *ENGINE); - fn HMAC_Update(ctx: *mut HMAC_CTX, input: *u8, len: c_uint); + fn HMAC_Init_ex(ctx: *mut HMAC_CTX, key: *const u8, keylen: c_int, md: *const hash::EVP_MD, imple: *const ENGINE); + fn HMAC_Update(ctx: *mut HMAC_CTX, input: *const u8, len: c_uint); fn HMAC_Final(ctx: *mut HMAC_CTX, output: *mut u8, len: *mut c_uint); } @@ -55,7 +55,7 @@ pub fn HMAC(ht: hash::HashType, key: &[u8]) -> HMAC { HMAC_Init_ex(&mut ctx, key.as_ptr(), key.len() as c_int, - evp, 0 as *_); + evp, 0 as *const _); HMAC { ctx: ctx, len: mdlen } } |