feat(transport): Remove TLS 1.1 in accepted protocols by default (only allow TLS 1.2)

This commit is contained in:
Alexis Mousset
2018-05-06 11:24:17 +02:00
parent 31442e96d0
commit 4b48bdbd9a

View File

@@ -24,8 +24,8 @@ impl ClientTlsParameters {
}
/// Accepted protocols by default.
/// This removes TLS 1.0 compared to tls-native defaults.
pub const DEFAULT_TLS_PROTOCOLS: &[Protocol] = &[Protocol::Tlsv11, Protocol::Tlsv12];
/// This removes TLS 1.0 and 1.1 compared to tls-native defaults.
pub const DEFAULT_TLS_PROTOCOLS: &[Protocol] = &[Protocol::Tlsv12];
#[derive(Debug)]
/// Represents the different types of underlying network streams