mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: Remove support for TLS1.0/1.1 in SSLVersionMin policy
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2765737 Remove TLS v1.0 & 1.1 from our SSLProtocolVersionFromString() function. This is the same change made upstream at https://chromium-review.googlesource.com/c/chromium/src/+/2765737/8/chrome/browser/ssl/ssl_config_service_manager_pref.cc
This commit is contained in:
committed by
Samuel Attard
parent
bf9ef3b636
commit
c4558b031d
@@ -184,14 +184,6 @@ struct Converter<ClearStorageDataOptions> {
|
||||
|
||||
bool SSLProtocolVersionFromString(const std::string& version_str,
|
||||
network::mojom::SSLVersion* version) {
|
||||
if (version_str == switches::kSSLVersionTLSv1) {
|
||||
*version = network::mojom::SSLVersion::kTLS1;
|
||||
return true;
|
||||
}
|
||||
if (version_str == switches::kSSLVersionTLSv11) {
|
||||
*version = network::mojom::SSLVersion::kTLS11;
|
||||
return true;
|
||||
}
|
||||
if (version_str == switches::kSSLVersionTLSv12) {
|
||||
*version = network::mojom::SSLVersion::kTLS12;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user