aboutsummaryrefslogtreecommitdiff
path: root/lib.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2013-10-22 23:23:57 -0700
committerSteven Fackler <[email protected]>2013-10-22 23:23:57 -0700
commit83d702df2b568ec4ad32fc15bf73abdc82497218 (patch)
treec63abfed390a62741515a378111300094cc9ad64 /lib.rs
parentTravis CI infrastructure (diff)
downloadrust-openssl-83d702df2b568ec4ad32fc15bf73abdc82497218.tar.xz
rust-openssl-83d702df2b568ec4ad32fc15bf73abdc82497218.zip
Remove Sslv2 option
Many distributions of OpenSSL disable this method as SSLv2 has known security issues.
Diffstat (limited to 'lib.rs')
-rw-r--r--lib.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib.rs b/lib.rs
index 461a8b0c..4b5d4ba7 100644
--- a/lib.rs
+++ b/lib.rs
@@ -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()