Remove Sslv2 option

Many distributions of OpenSSL disable this method as SSLv2 has known
security issues.
This commit is contained in:
Steven Fackler 2013-10-22 23:23:57 -07:00
parent 5f5a0b5329
commit 83d702df2b
2 changed files with 0 additions and 3 deletions

1
ffi.rs
View File

@ -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)

2
lib.rs
View File

@ -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()