Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1584)

Unified Diff: net/cert/cert_status_flags.h

Issue 27026002: CT: Adding preliminary Certificate Transparency support to Chromium. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Distinguish between SCTs from unknown logs and unverified ones Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | net/cert/ct_log_verifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
+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) {
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | net/cert/ct_log_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698