Chromium Code Reviews| Index: net/cert/cert_status_flags.h |
| diff --git a/net/cert/cert_status_flags.h b/net/cert/cert_status_flags.h |
| index 630df650fe3f759e1230a30de495f3c977e20804..174745f3c5181660fce430e99c5d7464d1bde1b6 100644 |
| --- a/net/cert/cert_status_flags.h |
| +++ b/net/cert/cert_status_flags.h |
| @@ -39,6 +39,12 @@ static const CertStatus CERT_STATUS_PINNED_KEY_MISSING = 1 << 13; |
| static const CertStatus CERT_STATUS_IS_EV = 1 << 16; |
| static const CertStatus CERT_STATUS_REV_CHECKING_ENABLED = 1 << 17; |
| // bit 18 was CERT_STATUS_IS_DNSSEC. |
| +// Bits 19 to 21 are for Certificate Transparency. Note that while |
| +// the current state can be represented with only 2 bits, the mapping |
| +// from bit to state will not be straightforward. |
|
Ryan Sleevi
2013/11/25 06:49:31
Why not? Can we not just encapsulate it in a helpe
Eran M. (Google)
2013/11/25 17:18:33
Done, but the const names aren't pretty - PTAL.
|
| +static const CertStatus CERT_STATUS_HAS_ANY_SCT = 1 << 19; |
| +static const CertStatus CERT_STATUS_HAS_SCT_FROM_KNOWN_LOG = 1 << 20; |
| +static const CertStatus CERT_STATUS_HAS_VALID_SCT = 1 << 21; |
| // Returns true if the specified cert status has an error set. |
| static inline bool IsCertStatusError(CertStatus status) { |