diff options
| author | Steven Fackler <[email protected]> | 2016-10-13 19:06:53 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-10-13 19:06:53 -0700 |
| commit | b610e01793f31836bb5e56b655a3bbae498649d6 (patch) | |
| tree | 16526c6cefd43297a06ea76a9bab148c0c005d9a /openssl-sys/src | |
| parent | Tweak some comments in Cargo.toml (diff) | |
| download | rust-openssl-b610e01793f31836bb5e56b655a3bbae498649d6.tar.xz rust-openssl-b610e01793f31836bb5e56b655a3bbae498649d6.zip | |
Flag off dtls and mask ssl_ops
Also un-feature gate npn as it ships with 1.0.1
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 9dfe8061..e3c5bd95 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -171,8 +171,12 @@ pub const SSL_OP_NO_SSLv3: c_ulong = 0x02000000; pub const SSL_OP_NO_TLSv1: c_ulong = 0x04000000; pub const SSL_OP_NO_TLSv1_2: c_ulong = 0x08000000; pub const SSL_OP_NO_TLSv1_1: c_ulong = 0x10000000; + +#[cfg(not(ossl101))] pub const SSL_OP_NO_DTLSv1: c_ulong = 0x04000000; +#[cfg(not(ossl101))] pub const SSL_OP_NO_DTLSv1_2: c_ulong = 0x08000000; +#[cfg(not(ossl101))] 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; |