diff options
| author | Steven Fackler <[email protected]> | 2014-10-01 17:11:11 -0400 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-10-01 17:11:11 -0400 |
| commit | f959b2d680e689621ac6d0f3cf10d80a0e3839ca (patch) | |
| tree | fa573ced19393e50d0e8cdeba501abedc8213ece /src/ffi.rs | |
| parent | Merge pull request #57 from vhbit/mut-cleanup (diff) | |
| parent | Add bindings to CRYPTO_memcmp (diff) | |
| download | rust-openssl-f959b2d680e689621ac6d0f3cf10d80a0e3839ca.tar.xz rust-openssl-f959b2d680e689621ac6d0f3cf10d80a0e3839ca.zip | |
Merge pull request #61 from alexcrichton/memcmp
Add bindings to CRYPTO_memcmp
Diffstat (limited to 'src/ffi.rs')
| -rw-r--r-- | src/ffi.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,6 @@ #![allow(non_camel_case_types)] #![allow(dead_code)] -use libc::{c_void, c_int, c_char, c_ulong, c_long, c_uint, c_uchar}; +use libc::{c_void, c_int, c_char, c_ulong, c_long, c_uint, c_uchar, size_t}; pub type ASN1_INTEGER = c_void; pub type ASN1_STRING = c_void; @@ -265,6 +265,8 @@ extern "C" { file: *const c_char, line: c_int)); pub fn CRYPTO_free(buf: *const c_char); + pub fn CRYPTO_memcmp(a: *const c_void, b: *const c_void, + len: size_t) -> c_int; pub fn ERR_get_error() -> c_ulong; |