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

Unified Diff: base/win/win_util.cc

Issue 1610833004: Remove Windows XP SHA-256 and ECDSA logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: base/win/win_util.cc
diff --git a/base/win/win_util.cc b/base/win/win_util.cc
index 57bee8a57a785681636019e982baffed214b603a..05250f1a6b580187c41f0d930c561821891319e0 100644
--- a/base/win/win_util.cc
+++ b/base/win/win_util.cc
@@ -556,25 +556,6 @@ void SetDomainStateForTesting(bool state) {
g_domain_state = state ? ENROLLED : NOT_ENROLLED;
}
-bool MaybeHasSHA256Support() {
- const OSInfo* os_info = OSInfo::GetInstance();
-
- if (os_info->version() == VERSION_PRE_XP)
- return false; // Too old to have it and this OS is not supported anyway.
-
- if (os_info->version() == VERSION_XP)
- return os_info->service_pack().major >= 3; // Windows XP SP3 has it.
-
- // Assume it is missing in this case, although it may not be. This category
- // includes Windows XP x64, and Windows Server, where a hotfix could be
- // deployed.
- if (os_info->version() == VERSION_SERVER_2003)
- return false;
-
- DCHECK(os_info->version() >= VERSION_VISTA);
- return true; // New enough to have SHA-256 support.
-}
-
bool IsUser32AndGdi32Available() {
static base::LazyInstance<LazyIsUser32AndGdi32Available>::Leaky available =
LAZY_INSTANCE_INITIALIZER;

Powered by Google App Engine
This is Rietveld 408576698