diff options
| author | Michael Gehring <[email protected]> | 2014-08-22 17:16:16 +0200 |
|---|---|---|
| committer | Michael Gehring <[email protected]> | 2014-08-22 17:16:16 +0200 |
| commit | c4a275dc37a705568c9d6a5a0be8b85214a7db34 (patch) | |
| tree | cfdb26069adf63cb06359b7092b35dc65e262e5f /src/crypto/hash.rs | |
| parent | Merge pull request #33 from isra17/master (diff) | |
| download | rust-openssl-c4a275dc37a705568c9d6a5a0be8b85214a7db34.tar.xz rust-openssl-c4a275dc37a705568c9d6a5a0be8b85214a7db34.zip | |
Add repr(C) to C structs
Diffstat (limited to 'src/crypto/hash.rs')
| -rw-r--r-- | src/crypto/hash.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crypto/hash.rs b/src/crypto/hash.rs index 045956ba..2696e77b 100644 --- a/src/crypto/hash.rs +++ b/src/crypto/hash.rs @@ -14,6 +14,7 @@ pub enum HashType { #[allow(dead_code)] #[allow(non_camel_case_types)] +#[repr(C)] pub struct EVP_MD_CTX { digest: *mut EVP_MD, engine: *mut libc::c_void, @@ -24,9 +25,11 @@ pub struct EVP_MD_CTX { } #[allow(non_camel_case_types)] +#[repr(C)] pub struct EVP_MD; #[allow(non_camel_case_types)] +#[repr(C)] pub struct EVP_PKEY_CTX; #[link(name = "crypto")] |