aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 8550ce33..2a99d710 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -39,7 +39,6 @@ pub type X509_NAME_ENTRY = c_void;
pub type X509_REQ = c_void;
pub type X509_STORE_CTX = c_void;
-#[allow(missing_copy_implementations)]
#[repr(C)]
pub struct EVP_MD_CTX {
digest: *mut EVP_MD,
@@ -50,7 +49,8 @@ pub struct EVP_MD_CTX {
update: *mut c_void
}
-#[allow(missing_copy_implementations)]
+impl Copy for EVP_MD_CTX {}
+
#[repr(C)]
pub struct HMAC_CTX {
md: *mut EVP_MD,
@@ -61,7 +61,8 @@ pub struct HMAC_CTX {
key: [c_uchar, ..128]
}
-#[allow(missing_copy_implementations)]
+impl Copy for HMAC_CTX {}
+
#[repr(C)]
pub struct X509V3_CTX {
flags: c_int,
@@ -75,7 +76,8 @@ pub struct X509V3_CTX {
// Maybe more here
}
-#[allow(missing_copy_implementations)]
+impl Copy for X509V3_CTX {}
+
#[repr(C)]
pub struct BIGNUM {
pub d: *mut c_void,
@@ -85,6 +87,8 @@ pub struct BIGNUM {
pub flags: c_int,
}
+impl Copy for BIGNUM {}
+
pub type CRYPTO_EX_new = extern "C" fn(parent: *mut c_void, ptr: *mut c_void,
ad: *const CRYPTO_EX_DATA, idx: c_int,
argl: c_long, argp: *const c_void) -> c_int;