diff options
| author | Steven Fackler <[email protected]> | 2016-11-19 10:19:52 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-11-27 21:00:59 -0800 |
| commit | 234f126d7d9718bd95655aca5fa6f57dc2c4270a (patch) | |
| tree | 2b389e1abb4419c03c70eaa7daa68d72539a02d0 /openssl/src/ssl/connector.rs | |
| parent | Return Option from group (diff) | |
| download | rust-openssl-234f126d7d9718bd95655aca5fa6f57dc2c4270a.tar.xz rust-openssl-234f126d7d9718bd95655aca5fa6f57dc2c4270a.zip | |
Cleanup
Diffstat (limited to 'openssl/src/ssl/connector.rs')
| -rw-r--r-- | openssl/src/ssl/connector.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/ssl/connector.rs b/openssl/src/ssl/connector.rs index 043014c4..9ff89c0e 100644 --- a/openssl/src/ssl/connector.rs +++ b/openssl/src/ssl/connector.rs @@ -23,10 +23,10 @@ fn ctx(method: SslMethod) -> Result<SslContextBuilder, ErrorStack> { let mut ctx = try!(SslContextBuilder::new(method)); let mut opts = ssl::SSL_OP_ALL; - opts |= ssl::SSL_OP_NO_TICKET; - opts |= ssl::SSL_OP_NO_COMPRESSION; opts &= !ssl::SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG; opts &= !ssl::SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS; + opts |= ssl::SSL_OP_NO_TICKET; + opts |= ssl::SSL_OP_NO_COMPRESSION; opts |= ssl::SSL_OP_NO_SSLV2; opts |= ssl::SSL_OP_NO_SSLV3; opts |= ssl::SSL_OP_SINGLE_DH_USE; |