Index: net/base/cert_verify_proc_win.cc |
=================================================================== |
--- net/base/cert_verify_proc_win.cc (revision 142157) |
+++ net/base/cert_verify_proc_win.cc (working copy) |
@@ -441,7 +441,7 @@ |
} |
void AppendPublicKeyHashes(PCCERT_CHAIN_CONTEXT chain, |
- std::vector<SHA1Fingerprint>* hashes) { |
+ std::vector<Fingerprint>* hashes) { |
if (chain->cChain == 0) |
return; |
@@ -459,9 +459,10 @@ |
if (!asn1::ExtractSPKIFromDERCert(der_bytes, &spki_bytes)) |
continue; |
- SHA1Fingerprint hash; |
+ Fingerprint hash; |
+ hash.tag = FINGERPRINT_SHA1; |
base::SHA1HashBytes(reinterpret_cast<const uint8*>(spki_bytes.data()), |
- spki_bytes.size(), hash.data); |
+ spki_bytes.size(), hash.data()); |
hashes->push_back(hash); |
} |
} |