mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Disable TLS 1.0 and 1.1
This commit is contained in:
parent
b1b47d8046
commit
25333b6451
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue