diff options
| author | Steven Fackler <[email protected]> | 2015-04-20 16:27:04 -0400 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-04-20 16:27:04 -0400 |
| commit | 181205393a926cbadc00429f0a856747708912c7 (patch) | |
| tree | 6acc03a6912a6cfe559378f0d14b2d84ed1a89f6 /openssl-sys/src | |
| parent | Merge pull request #199 from CarlColglazier/patch-1 (diff) | |
| parent | Fixes for Native Client. (diff) | |
| download | rust-openssl-181205393a926cbadc00429f0a856747708912c7.tar.xz rust-openssl-181205393a926cbadc00429f0a856747708912c7.zip | |
Merge pull request #202 from DiamondLovesYou/master
Fixes for Native Client.
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 53e06c3a..53f22558 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -439,8 +439,11 @@ extern "C" { pub fn HMAC_CTX_copy(dst: *mut HMAC_CTX, src: *const HMAC_CTX) -> c_int; // Pre-1.0 versions of these didn't return anything, so the shims bridge that gap + #[cfg_attr(target_os = "nacl", link_name = "HMAC_Init_ex")] pub fn HMAC_Init_ex_shim(ctx: *mut HMAC_CTX, key: *const u8, keylen: c_int, md: *const EVP_MD, imple: *const ENGINE) -> c_int; + #[cfg_attr(target_os = "nacl", link_name = "HMAC_Final")] pub fn HMAC_Final_shim(ctx: *mut HMAC_CTX, output: *mut u8, len: *mut c_uint) -> c_int; + #[cfg_attr(target_os = "nacl", link_name = "HMAC_Update")] pub fn HMAC_Update_shim(ctx: *mut HMAC_CTX, input: *const u8, len: c_uint) -> c_int; |