ct_policy_status.h 1.3 KB

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