diff options
| author | Steven Fackler <[email protected]> | 2014-06-30 12:01:53 -0400 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-06-30 12:01:53 -0400 |
| commit | 6c8008e9140a59819e268c049c9243ddb480ac24 (patch) | |
| tree | 73b461867ed0e1e86ecf81e3f9c30c5a38d1afb7 /ssl | |
| parent | Switch docs back over to rust-ci (again) (diff) | |
| parent | Add some now-necesssary #[repr] on enums (diff) | |
| download | rust-openssl-6c8008e9140a59819e268c049c9243ddb480ac24.tar.xz rust-openssl-6c8008e9140a59819e268c049c9243ddb480ac24.zip | |
Merge pull request #23 from chris-morgan/patch-1
Add some now-necesssary #[repr] on enums
Diffstat (limited to 'ssl')
| -rw-r--r-- | ssl/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -70,6 +70,7 @@ impl SslMethod { } /// Determines the type of certificate verification used +#[repr(i32)] pub enum SslVerifyMode { /// Verify that the server's certificate is trusted SslVerifyPeer = ffi::SSL_VERIFY_PEER, @@ -212,6 +213,7 @@ pub struct X509Name<'x> { name: *mut ffi::X509_NAME } +#[repr(u64)] pub enum X509NameFormat { Rfc2253 = ffi::XN_FLAG_RFC2253, Oneline = ffi::XN_FLAG_ONELINE, @@ -370,6 +372,7 @@ impl Ssl { } #[deriving(FromPrimitive)] +#[repr(i32)] enum LibSslError { ErrorNone = ffi::SSL_ERROR_NONE, ErrorSsl = ffi::SSL_ERROR_SSL, |