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

Unified Diff: net/cert/cert_verify_proc_win.cc

Issue 2000503002: Remove the fingerprint and ca_fingerprint from X509Certificate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_cache
Patch Set: Fix IDN test Created 4 years, 6 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
« no previous file with comments | « net/cert/cert_verify_proc_unittest.cc ('k') | net/cert/nss_cert_database_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_verify_proc_win.cc
diff --git a/net/cert/cert_verify_proc_win.cc b/net/cert/cert_verify_proc_win.cc
index bb1b4813ecec92f26880797d1b3defa8d7891c41..226c359fb6c0dc6c356fc3b77194562e2ec51453 100644
--- a/net/cert/cert_verify_proc_win.cc
+++ b/net/cert/cert_verify_proc_win.cc
@@ -612,10 +612,11 @@ bool CheckEV(PCCERT_CHAIN_CONTEXT chain_context,
// Look up the EV policy OID of the root CA.
PCCERT_CONTEXT root_cert = element[num_elements - 1]->pCertContext;
- SHA1HashValue fingerprint =
- X509Certificate::CalculateFingerprint(root_cert);
+ SHA1HashValue weak_fingerprint;
+ base::SHA1HashBytes(root_cert->pbCertEncoded, root_cert->cbCertEncoded,
+ weak_fingerprint.data);
EVRootCAMetadata* metadata = EVRootCAMetadata::GetInstance();
- return metadata->HasEVPolicyOID(fingerprint, policy_oid);
+ return metadata->HasEVPolicyOID(weak_fingerprint, policy_oid);
}
// Custom revocation provider function that compares incoming certificates with
« no previous file with comments | « net/cert/cert_verify_proc_unittest.cc ('k') | net/cert/nss_cert_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698