diff options
| author | Alex Crichton <[email protected]> | 2015-04-02 18:14:51 -0700 |
|---|---|---|
| committer | Alex Crichton <[email protected]> | 2015-04-02 18:14:51 -0700 |
| commit | 293f1ce5b19610255f4fe3a69cf8fd159a0d5820 (patch) | |
| tree | 334537900cf3d6d55e3b980e69375a407ff0868c /openssl-sys/src | |
| parent | Remove two features (diff) | |
| download | rust-openssl-293f1ce5b19610255f4fe3a69cf8fd159a0d5820.tar.xz rust-openssl-293f1ce5b19610255f4fe3a69cf8fd159a0d5820.zip | |
Fixup for beta
Add derive(Clone) and don't negate unsigned numbers
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 12 |
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, |