| Index: net/base/ev_root_ca_metadata.h
|
| ===================================================================
|
| --- net/base/ev_root_ca_metadata.h (revision 155029)
|
| +++ net/base/ev_root_ca_metadata.h (working copy)
|
| @@ -13,6 +13,7 @@
|
|
|
| #include <map>
|
| #include <set>
|
| +#include <string>
|
| #include <vector>
|
|
|
| #include "net/base/net_export.h"
|
| @@ -43,18 +44,18 @@
|
|
|
| // Returns true if the root CA with the given certificate fingerprint has
|
| // the EV policy OID policy_oid.
|
| - bool HasEVPolicyOID(const SHA1Fingerprint& fingerprint,
|
| + bool HasEVPolicyOID(const SHA1HashValue& fingerprint,
|
| PolicyOID policy_oid) const;
|
| #endif
|
|
|
| // AddEVCA adds an EV CA to the list of known EV CAs with the given policy.
|
| // |policy| is expressed as a string of dotted numbers. It returns true on
|
| // success.
|
| - bool AddEVCA(const SHA1Fingerprint& fingerprint, const char* policy);
|
| + bool AddEVCA(const SHA1HashValue& fingerprint, const char* policy);
|
|
|
| // RemoveEVCA removes an EV CA that was previously added by AddEVCA. It
|
| // returns true on success.
|
| - bool RemoveEVCA(const SHA1Fingerprint& fingerprint);
|
| + bool RemoveEVCA(const SHA1HashValue& fingerprint);
|
|
|
| private:
|
| friend struct base::DefaultLazyInstanceTraits<EVRootCAMetadata>;
|
| @@ -63,8 +64,8 @@
|
| ~EVRootCAMetadata();
|
|
|
| #if defined(USE_NSS)
|
| - typedef std::map<SHA1Fingerprint, std::vector<PolicyOID>,
|
| - SHA1FingerprintLessThan> PolicyOIDMap;
|
| + typedef std::map<SHA1HashValue, std::vector<PolicyOID>,
|
| + SHA1HashValueLessThan> PolicyOIDMap;
|
|
|
| // RegisterOID registers |policy|, a policy OID in dotted string form, and
|
| // writes the memoized form to |*out|. It returns true on success.
|
| @@ -73,8 +74,8 @@
|
| PolicyOIDMap ev_policy_;
|
| std::set<PolicyOID> policy_oids_;
|
| #elif defined(OS_WIN)
|
| - typedef std::map<SHA1Fingerprint, std::string,
|
| - SHA1FingerprintLessThan> ExtraEVCAMap;
|
| + typedef std::map<SHA1HashValue, std::string,
|
| + SHA1HashValueLessThan> ExtraEVCAMap;
|
|
|
| // extra_cas_ contains any EV CA metadata that was added at runtime.
|
| ExtraEVCAMap extra_cas_;
|
|
|