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

Unified Diff: net/cert/known_roots_win.cc

Issue 2913253003: Convert Windows to use X509CertificateBytes. (Closed)
Patch Set: rebase Created 3 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_win.cc ('k') | net/cert/test_root_certs_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/known_roots_win.cc
diff --git a/net/cert/known_roots_win.cc b/net/cert/known_roots_win.cc
index 0a1d3acd82fd78e8dcb18fd5958aba7e7507a405..d24896e1cee06adf3097a4fb482c91ec2882f79e 100644
--- a/net/cert/known_roots_win.cc
+++ b/net/cert/known_roots_win.cc
@@ -6,13 +6,14 @@
#include "base/metrics/histogram_macros.h"
#include "crypto/sha2.h"
-#include "net/cert/x509_certificate.h"
+#include "net/base/hash_value.h"
#include "net/cert/x509_certificate_known_roots_win.h"
+#include "net/cert/x509_util_win.h"
namespace net {
bool IsKnownRoot(PCCERT_CONTEXT cert) {
- SHA256HashValue hash = X509Certificate::CalculateFingerprint256(cert);
+ SHA256HashValue hash = x509_util::CalculateFingerprint256(cert);
bool is_builtin =
IsSHA256HashInSortedArray(hash, &kKnownRootCertSHA256Hashes[0][0],
sizeof(kKnownRootCertSHA256Hashes));
« no previous file with comments | « net/cert/cert_verify_proc_win.cc ('k') | net/cert/test_root_certs_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698