aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-10-12 22:34:13 -0700
committerAlex Crichton <[email protected]>2016-10-12 22:50:08 -0700
commitaf3e06d3e897d0ea5a2a50f0a6b932c3c42bd450 (patch)
treedf298df941dc3eaf7d00565b08ab2211ef773f29 /openssl-sys/src
parentAdd support for OpenSSL 1.1.0 (diff)
downloadrust-openssl-af3e06d3e897d0ea5a2a50f0a6b932c3c42bd450.tar.xz
rust-openssl-af3e06d3e897d0ea5a2a50f0a6b932c3c42bd450.zip
Add remaining SSL_OP constants
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs15
1 files changed, 5 insertions, 10 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 1c1df579..9dfe8061 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -169,17 +169,12 @@ pub const SSL_OP_CIPHER_SERVER_PREFERENCE: c_ulong = 0x00400000;
pub const SSL_OP_TLS_ROLLBACK_BUG: c_ulong = 0x00800000;
pub const SSL_OP_NO_SSLv3: c_ulong = 0x02000000;
pub const SSL_OP_NO_TLSv1: c_ulong = 0x04000000;
-
-// Intentionally not bound since they conflict with SSL_OP_PKCS1_CHECK_1 and
-// SSL_OP_PKCS1_CHECK_2 on 0.9.8 :(
-/*
-pub const SSL_OP_NO_TLSv1_2: c_long = 0x08000000;
-pub const SSL_OP_NO_TLSv1_1: c_long = 0x10000000;
-pub const SSL_OP_NO_DTLSv1: c_long = 0x04000000;
-pub const SSL_OP_NO_DTLSv1_2: c_long = 0x08000000;
-pub const SSL_OP_NO_SSL_MASK: c_long = SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 |
+pub const SSL_OP_NO_TLSv1_2: c_ulong = 0x08000000;
+pub const SSL_OP_NO_TLSv1_1: c_ulong = 0x10000000;
+pub const SSL_OP_NO_DTLSv1: c_ulong = 0x04000000;
+pub const SSL_OP_NO_DTLSv1_2: c_ulong = 0x08000000;
+pub const SSL_OP_NO_SSL_MASK: c_ulong = SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 |
SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2;
-*/
pub const TLSEXT_NAMETYPE_host_name: c_int = 0;