| 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
|
|
|