1 // Copyright 2016 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef NET_CERT_CT_POLICY_STATUS_H_ 6 #define NET_CERT_CT_POLICY_STATUS_H_ 7 8 namespace net::ct { 9 10 // Information about the connection's compliance with the CT policy. This value 11 // is histogrammed, so do not re-order or change values, and add new values at 12 // the end. 13 enum class CTPolicyCompliance { 14 // The connection complied with the certificate policy by 15 // including SCTs that satisfy the policy. 16 CT_POLICY_COMPLIES_VIA_SCTS = 0, 17 // The connection did not have enough SCTs to comply. 18 CT_POLICY_NOT_ENOUGH_SCTS = 1, 19 // The connection did not have diverse enough SCTs to comply. 20 CT_POLICY_NOT_DIVERSE_SCTS = 2, 21 // The connection cannot be considered compliant because the build 22 // isn't timely and therefore log information might be out of date 23 // (for example a log might no longer be considered trustworthy). 24 CT_POLICY_BUILD_NOT_TIMELY = 3, 25 // Compliance details for the connection are not available, e.g. because a 26 // resource was loaded from disk cache. 27 CT_POLICY_COMPLIANCE_DETAILS_NOT_AVAILABLE = 4, 28 CT_POLICY_COUNT 29 }; 30 31 } // namespace net::ct 32 33 #endif // NET_CERT_CT_POLICY_STATUS_H_ 34