transport_security_state_source.h 998 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright (c) 2017 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_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_
  5. #define NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_
  6. #include <stddef.h>
  7. #include <stdint.h>
  8. #include "net/base/net_export.h"
  9. namespace net {
  10. // kNoReportURI is a placeholder for when a pinset does not have a report URI.
  11. NET_EXPORT_PRIVATE extern const char kNoReportURI[];
  12. struct TransportSecurityStateSource {
  13. struct Pinset {
  14. const char* const* const accepted_pins;
  15. const char* const* const rejected_pins;
  16. const char* const report_uri;
  17. };
  18. const uint8_t* huffman_tree;
  19. size_t huffman_tree_size;
  20. const uint8_t* preloaded_data;
  21. size_t preloaded_bits;
  22. size_t root_position;
  23. const char* const* expect_ct_report_uris;
  24. const Pinset* pinsets;
  25. size_t pinsets_count;
  26. };
  27. } // namespace net
  28. #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_