aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src/lib.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-04-02 20:08:19 -0700
committerSteven Fackler <[email protected]>2015-04-02 20:08:19 -0700
commit129f6c236bedb1b5618cc68c8f331e374ad9384f (patch)
tree334537900cf3d6d55e3b980e69375a407ff0868c /openssl-sys/src/lib.rs
parentRemove two features (diff)
parentFixup for beta (diff)
downloadrust-openssl-129f6c236bedb1b5618cc68c8f331e374ad9384f.tar.xz
rust-openssl-129f6c236bedb1b5618cc68c8f331e374ad9384f.zip
Merge pull request #194 from alexcrichton/beta
Fixup for beta
Diffstat (limited to 'openssl-sys/src/lib.rs')
-rw-r--r--openssl-sys/src/lib.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 28db754a..ac1891aa 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -50,6 +50,9 @@ pub struct EVP_MD_CTX {
}
impl Copy for EVP_MD_CTX {}
+impl Clone for EVP_MD_CTX {
+ fn clone(&self) -> EVP_MD_CTX { *self }
+}
#[repr(C)]
pub struct HMAC_CTX {
@@ -62,6 +65,9 @@ pub struct HMAC_CTX {
}
impl Copy for HMAC_CTX {}
+impl Clone for HMAC_CTX {
+ fn clone(&self) -> HMAC_CTX { *self }
+}
#[repr(C)]
pub struct X509V3_CTX {
@@ -77,6 +83,9 @@ pub struct X509V3_CTX {
}
impl Copy for X509V3_CTX {}
+impl Clone for X509V3_CTX {
+ fn clone(&self) -> X509V3_CTX { *self }
+}
#[repr(C)]
pub struct BIGNUM {
@@ -88,6 +97,9 @@ pub struct BIGNUM {
}
impl Copy for BIGNUM {}
+impl Clone for BIGNUM {
+ fn clone(&self) -> BIGNUM { *self }
+}
pub type CRYPTO_EX_new = extern "C" fn(parent: *mut c_void, ptr: *mut c_void,
ad: *const CRYPTO_EX_DATA, idx: c_int,