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/src/crypto/pkey.rs | |
| 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/src/crypto/pkey.rs')
| -rw-r--r-- | openssl/src/crypto/pkey.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/crypto/pkey.rs b/openssl/src/crypto/pkey.rs index e23171ed..9bcc79b6 100644 --- a/openssl/src/crypto/pkey.rs +++ b/openssl/src/crypto/pkey.rs @@ -9,7 +9,7 @@ use crypto::hash::Type as HashType; use ffi; use ssl::error::{SslError, StreamError}; -#[derive(Copy)] +#[derive(Copy, Clone)] enum Parts { Neither, Public, @@ -17,7 +17,7 @@ enum Parts { } /// Represents a role an asymmetric key might be appropriate for. -#[derive(Copy)] +#[derive(Copy, Clone)] pub enum Role { Encrypt, Decrypt, @@ -26,7 +26,7 @@ pub enum Role { } /// Type of encryption padding to use. -#[derive(Copy)] +#[derive(Copy, Clone)] pub enum EncryptionPadding { OAEP, PKCS1v15 |