Skip to content
Permalink
Browse files

Disable TLS 1.0 and 1.1

  • Loading branch information
Darkspirit committed May 10, 2019
1 parent b1b47d8 commit 25333b6451372ce4d5047da33419aa96a8c7dfbb
Showing with 7 additions and 2 deletions.
  1. +7 −2 components/net/connector.rs
@@ -77,8 +77,13 @@ pub fn create_ssl_connector_builder(certs: &str) -> SslConnectorBuilder {
ssl_connector_builder
.set_cipher_list(DEFAULT_CIPHERS)
.expect("could not set ciphers");
ssl_connector_builder
.set_options(SslOptions::NO_SSLV2 | SslOptions::NO_SSLV3 | SslOptions::NO_COMPRESSION);
ssl_connector_builder.set_options(
SslOptions::NO_SSLV2 |
SslOptions::NO_SSLV3 |
SslOptions::NO_TLSV1 |
SslOptions::NO_TLSV1_1 |
SslOptions::NO_COMPRESSION,
);
ssl_connector_builder
}

0 comments on commit 25333b6

Please sign in to comment.
You can’t perform that action at this time.