| Index: net/base/ev_root_ca_metadata.cc
|
| ===================================================================
|
| --- net/base/ev_root_ca_metadata.cc (revision 155029)
|
| +++ net/base/ev_root_ca_metadata.cc (working copy)
|
| @@ -33,7 +33,7 @@
|
|
|
| // The SHA-1 fingerprint of the root CA certificate, used as a unique
|
| // identifier for a root CA certificate.
|
| - SHA1Fingerprint fingerprint;
|
| + SHA1HashValue fingerprint;
|
|
|
| // The EV policy OIDs of the root CA.
|
| const char policy_oids[kMaxOIDsPerCA][kMaxOIDLength];
|
| @@ -73,7 +73,7 @@
|
| // https://premiumecc.affirmtrust.com:4433/
|
| { { { 0xb8, 0x23, 0x6b, 0x00, 0x2f, 0x1d, 0x16, 0x86, 0x53, 0x01,
|
| 0x55, 0x6c, 0x11, 0xa4, 0x37, 0xca, 0xeb, 0xff, 0xc3, 0xbb } },
|
| - {"1.3.6.1.4.1.34697.2.4", ""},
|
| + {"1.3.6.1.4.1.34697.2.4", ""},
|
| },
|
| // CertPlus Class 2 Primary CA (KEYNECTIS)
|
| // https://www.keynectis.com/
|
| @@ -325,7 +325,7 @@
|
| }
|
|
|
| bool EVRootCAMetadata::HasEVPolicyOID(
|
| - const SHA1Fingerprint& fingerprint,
|
| + const SHA1HashValue& fingerprint,
|
| PolicyOID policy_oid) const {
|
| PolicyOIDMap::const_iterator iter = ev_policy_.find(fingerprint);
|
| if (iter == ev_policy_.end())
|
| @@ -338,7 +338,7 @@
|
| return false;
|
| }
|
|
|
| -bool EVRootCAMetadata::AddEVCA(const SHA1Fingerprint& fingerprint,
|
| +bool EVRootCAMetadata::AddEVCA(const SHA1HashValue& fingerprint,
|
| const char* policy) {
|
| if (ev_policy_.find(fingerprint) != ev_policy_.end())
|
| return false;
|
| @@ -353,7 +353,7 @@
|
| return true;
|
| }
|
|
|
| -bool EVRootCAMetadata::RemoveEVCA(const SHA1Fingerprint& fingerprint) {
|
| +bool EVRootCAMetadata::RemoveEVCA(const SHA1HashValue& fingerprint) {
|
| PolicyOIDMap::iterator it = ev_policy_.find(fingerprint);
|
| if (it == ev_policy_.end())
|
| return false;
|
| @@ -407,7 +407,7 @@
|
| return false;
|
| }
|
|
|
| -bool EVRootCAMetadata::HasEVPolicyOID(const SHA1Fingerprint& fingerprint,
|
| +bool EVRootCAMetadata::HasEVPolicyOID(const SHA1HashValue& fingerprint,
|
| PolicyOID policy_oid) const {
|
| for (size_t i = 0; i < arraysize(ev_root_ca_metadata); i++) {
|
| if (!fingerprint.Equals(ev_root_ca_metadata[i].fingerprint))
|
| @@ -425,7 +425,7 @@
|
| return it != extra_cas_.end() && it->second == policy_oid;
|
| }
|
|
|
| -bool EVRootCAMetadata::AddEVCA(const SHA1Fingerprint& fingerprint,
|
| +bool EVRootCAMetadata::AddEVCA(const SHA1HashValue& fingerprint,
|
| const char* policy) {
|
| for (size_t i = 0; i < arraysize(ev_root_ca_metadata); i++) {
|
| if (fingerprint.Equals(ev_root_ca_metadata[i].fingerprint))
|
| @@ -439,7 +439,7 @@
|
| return true;
|
| }
|
|
|
| -bool EVRootCAMetadata::RemoveEVCA(const SHA1Fingerprint& fingerprint) {
|
| +bool EVRootCAMetadata::RemoveEVCA(const SHA1HashValue& fingerprint) {
|
| ExtraEVCAMap::iterator it = extra_cas_.find(fingerprint);
|
| if (it == extra_cas_.end())
|
| return false;
|
| @@ -452,12 +452,12 @@
|
| // These are just stub functions for platforms where we don't use this EV
|
| // metadata.
|
|
|
| -bool EVRootCAMetadata::AddEVCA(const SHA1Fingerprint& fingerprint,
|
| +bool EVRootCAMetadata::AddEVCA(const SHA1HashValue& fingerprint,
|
| const char* policy) {
|
| return true;
|
| }
|
|
|
| -bool EVRootCAMetadata::RemoveEVCA(const SHA1Fingerprint& fingerprint) {
|
| +bool EVRootCAMetadata::RemoveEVCA(const SHA1HashValue& fingerprint) {
|
| return true;
|
| }
|
|
|
|
|