diff options
| author | Valerii Hiora <[email protected]> | 2014-12-11 13:44:37 +0200 |
|---|---|---|
| committer | Valerii Hiora <[email protected]> | 2014-12-11 13:44:37 +0200 |
| commit | c9220900753052a946abf6ac6de172d4a5e98b43 (patch) | |
| tree | 57b5e5c37c607769671fbbb56dac66b5a58c3856 /src/x509 | |
| parent | Merge pull request #117 from Ummon/master (diff) | |
| download | rust-openssl-c9220900753052a946abf6ac6de172d4a5e98b43.tar.xz rust-openssl-c9220900753052a946abf6ac6de172d4a5e98b43.zip | |
Update to nightly: explicit Copy trait
Diffstat (limited to 'src/x509')
| -rw-r--r-- | src/x509/mod.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/x509/mod.rs b/src/x509/mod.rs index a06fe4e1..47294c3d 100644 --- a/src/x509/mod.rs +++ b/src/x509/mod.rs @@ -15,6 +15,7 @@ use ssl::error::{SslError, StreamError}; #[cfg(test)] mod tests; +#[deriving(Copy)] #[repr(i32)] pub enum X509FileType { PEM = ffi::X509_FILETYPE_PEM, @@ -22,6 +23,7 @@ pub enum X509FileType { Default = ffi::X509_FILETYPE_DEFAULT } +#[allow(missing_copy_implementations)] pub struct X509StoreContext { ctx: *mut ffi::X509_STORE_CTX } @@ -54,7 +56,7 @@ trait AsStr<'a> { fn as_str(&self) -> &'a str; } -#[deriving(Clone)] +#[deriving(Clone, Copy)] pub enum KeyUsage { DigitalSignature, NonRepudiation, @@ -84,7 +86,7 @@ impl AsStr<'static> for KeyUsage { } -#[deriving(Clone)] +#[deriving(Clone, Copy)] pub enum ExtKeyUsage { ServerAuth, ClientAuth, @@ -430,6 +432,7 @@ pub struct X509Name<'x> { macro_rules! make_validation_error( ($ok_val:ident, $($name:ident = $val:ident,)+) => ( + #[deriving(Copy)] pub enum X509ValidationError { $($name,)+ X509UnknownError(c_int) |