Skip to content

Add some now-necesssary #[repr] on enums #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ssl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -370,6 +372,7 @@ impl Ssl {
}

#[deriving(FromPrimitive)]
#[repr(i32)]
enum LibSslError {
ErrorNone = ffi::SSL_ERROR_NONE,
ErrorSsl = ffi::SSL_ERROR_SSL,
Expand Down