diff options
| author | Steven Fackler <[email protected]> | 2013-10-22 23:23:57 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2013-10-22 23:23:57 -0700 |
| commit | 83d702df2b568ec4ad32fc15bf73abdc82497218 (patch) | |
| tree | c63abfed390a62741515a378111300094cc9ad64 | |
| parent | Travis CI infrastructure (diff) | |
| download | rust-openssl-83d702df2b568ec4ad32fc15bf73abdc82497218.tar.xz rust-openssl-83d702df2b568ec4ad32fc15bf73abdc82497218.zip | |
Remove Sslv2 option
Many distributions of OpenSSL disable this method as SSLv2 has known
security issues.
| -rw-r--r-- | ffi.rs | 1 | ||||
| -rw-r--r-- | lib.rs | 2 |
2 files changed, 0 insertions, 3 deletions
@@ -43,7 +43,6 @@ externfn!(fn ERR_get_error() -> c_ulong) externfn!(fn SSL_library_init() -> c_int) -externfn!(fn SSLv2_method() -> *SSL_METHOD) externfn!(fn SSLv3_method() -> *SSL_METHOD) externfn!(fn TLSv1_method() -> *SSL_METHOD) externfn!(fn SSLv23_method() -> *SSL_METHOD) @@ -41,7 +41,6 @@ pub fn init() { } pub enum SslMethod { - Sslv2, Sslv3, Tlsv1, Sslv23 @@ -50,7 +49,6 @@ pub enum SslMethod { impl SslMethod { unsafe fn to_raw(&self) -> *ffi::SSL_METHOD { match *self { - Sslv2 => ffi::SSLv2_method(), Sslv3 => ffi::SSLv3_method(), Tlsv1 => ffi::TLSv1_method(), Sslv23 => ffi::SSLv23_method() |