OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 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 { |
| 9 |
| 10 namespace ct { |
| 11 |
| 12 // Information about a connection's compliance with the CT EV |
| 13 // certificate policy. |
| 14 enum class EVPolicyCompliance { |
| 15 // The certificate was not EV, so the EV policy doesn't apply. |
| 16 EV_POLICY_DOES_NOT_APPLY, |
| 17 // The connection complied with the EV certificate policy by being |
| 18 // included on the EV whitelist. |
| 19 EV_POLICY_COMPLIES_VIA_WHITELIST, |
| 20 // The connection complied with the EV certificate policy by |
| 21 // including SCTs that satisfy the policy. |
| 22 EV_POLICY_COMPLIES_VIA_SCTS, |
| 23 // The connection did not have enough SCTs to retain its EV |
| 24 // status. |
| 25 EV_POLICY_NOT_ENOUGH_SCTS, |
| 26 // The connection did not have diverse enough SCTs to retain its |
| 27 // EV status. |
| 28 EV_POLICY_NOT_DIVERSE_SCTS, |
| 29 // The connection cannot be considered compliant because the build |
| 30 // isn't timely and therefore log information might be out of date |
| 31 // (for example a log might no longer be considered trustworthy). |
| 32 EV_POLICY_BUILD_NOT_TIMELY, |
| 33 }; |
| 34 |
| 35 } // namespace ct |
| 36 |
| 37 } // namespace net |
| 38 |
| 39 #endif // NET_CERT_CT_POLICY_STATUS_H |
OLD | NEW |