Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: components/ssl_config/ssl_config_service_manager_pref.cc

Issue 2083743002: Adding TLS 1.3 constants (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing default versions. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/ssl_config/ssl_config_service_manager_pref.cc
diff --git a/components/ssl_config/ssl_config_service_manager_pref.cc b/components/ssl_config/ssl_config_service_manager_pref.cc
index cd67d4c86c32c54a9b3be1a44cb7bc6112b1a0f4..d89a42e69543910248ade63f9b08e1023b95f622 100644
--- a/components/ssl_config/ssl_config_service_manager_pref.cc
+++ b/components/ssl_config/ssl_config_service_manager_pref.cc
@@ -79,6 +79,8 @@ uint16_t SSLProtocolVersionFromString(const std::string& version_str) {
version = net::SSL_PROTOCOL_VERSION_TLS1_1;
} else if (version_str == switches::kSSLVersionTLSv12) {
version = net::SSL_PROTOCOL_VERSION_TLS1_2;
+ } else if (version_str == switches::kSSLVersionTLSv13) {
+ version = net::SSL_PROTOCOL_VERSION_TLS1_3;
}
return version;
}
« no previous file with comments | « no previous file | components/ssl_config/ssl_config_switches.h » ('j') | extensions/browser/api/socket/tls_socket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698