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

Unified Diff: net/cert/ct_policy_status.h

Issue 1578993003: Add Expect CT policy that gets checked on all certs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 months 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 | « net/cert/ct_policy_enforcer_unittest.cc ('k') | net/cert/ct_verify_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/ct_policy_status.h
diff --git a/net/cert/ct_policy_status.h b/net/cert/ct_policy_status.h
index e234cb73914e3358d13f9598fda2de79e5815e7e..cc38585d6faf7769e4785a63800f1b2cee5524d1 100644
--- a/net/cert/ct_policy_status.h
+++ b/net/cert/ct_policy_status.h
@@ -9,11 +9,28 @@ namespace net {
namespace ct {
+// Information about the connection's compliance with the CT
+// certificate policy.
+enum class CertPolicyCompliance {
+ // The connection complied with the certificate policy by
+ // including SCTs that satisfy the policy.
+ CERT_POLICY_COMPLIES_VIA_SCTS = 0,
+ // The connection did not have enough SCTs to comply.
+ CERT_POLICY_NOT_ENOUGH_SCTS,
+ // The connection did not have diverse enough SCTs to comply.
+ CERT_POLICY_NOT_DIVERSE_SCTS,
+ // The connection cannot be considered compliant because the build
+ // isn't timely and therefore log information might be out of date
+ // (for example a log might no longer be considered trustworthy).
+ CERT_POLICY_BUILD_NOT_TIMELY,
+};
+
// Information about a connection's compliance with the CT EV
// certificate policy.
+// This enum is histogrammed, so do not remove or reorder values.
enum class EVPolicyCompliance {
// The certificate was not EV, so the EV policy doesn't apply.
- EV_POLICY_DOES_NOT_APPLY,
+ EV_POLICY_DOES_NOT_APPLY = 0,
// The connection complied with the EV certificate policy by being
// included on the EV whitelist.
EV_POLICY_COMPLIES_VIA_WHITELIST,
@@ -30,6 +47,7 @@ enum class EVPolicyCompliance {
// isn't timely and therefore log information might be out of date
// (for example a log might no longer be considered trustworthy).
EV_POLICY_BUILD_NOT_TIMELY,
+ EV_POLICY_MAX,
};
} // namespace ct
« no previous file with comments | « net/cert/ct_policy_enforcer_unittest.cc ('k') | net/cert/ct_verify_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698