diff options
| author | Steven Fackler <[email protected]> | 2014-04-24 23:28:20 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-04-24 23:28:20 -0700 |
| commit | 4e54038ffcb40b48d102f751bf8da5e7237e282a (patch) | |
| tree | eb408019a0f6285392b48c191e3cb950197e5037 | |
| parent | Revert "Support the dynlock API" (diff) | |
| download | rust-openssl-4e54038ffcb40b48d102f751bf8da5e7237e282a.tar.xz rust-openssl-4e54038ffcb40b48d102f751bf8da5e7237e282a.zip | |
Update for attributes on match arms
| -rw-r--r-- | ssl/mod.rs | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -58,24 +58,15 @@ pub enum SslMethod { } impl SslMethod { - #[cfg(sslv2)] unsafe fn to_raw(&self) -> *ffi::SSL_METHOD { match *self { + #[cfg(sslv2)] Sslv2 => ffi::SSLv2_method(), Sslv3 => ffi::SSLv3_method(), Tlsv1 => ffi::TLSv1_method(), Sslv23 => ffi::SSLv23_method() } } - - #[cfg(not(sslv2))] - unsafe fn to_raw(&self) -> *ffi::SSL_METHOD { - match *self { - Sslv3 => ffi::SSLv3_method(), - Tlsv1 => ffi::TLSv1_method(), - Sslv23 => ffi::SSLv23_method() - } - } } /// Determines the type of certificate verification used |