From f36f610d079df6053bedec8b00d7c3bdb376815d Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 11 Nov 2015 22:35:11 -0800 Subject: Move HMAC_CTX_copy to sys-extras --- openssl-sys-extras/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openssl-sys-extras/src') diff --git a/openssl-sys-extras/src/lib.rs b/openssl-sys-extras/src/lib.rs index c602c514..bd3598eb 100644 --- a/openssl-sys-extras/src/lib.rs +++ b/openssl-sys-extras/src/lib.rs @@ -38,6 +38,9 @@ extern { #[cfg_attr(not(target_os = "nacl"), link_name = "HMAC_Update_shim")] pub fn HMAC_Update(ctx: *mut HMAC_CTX, input: *const u8, len: c_uint) -> c_int; + // This isn't defined in < 1.0 so we copy the implementation there + pub fn HMAC_CTX_copy(dst: *mut HMAC_CTX, src: *const HMAC_CTX) -> c_int; + // These functions are defined in OpenSSL as macros, so we shim them #[link_name = "BIO_eof_shim"] pub fn BIO_eof(b: *mut BIO) -> c_int; -- cgit v1.2.3