xref: /aosp_15_r20/external/cronet/net/http/transport_security_state_static_unittest.template (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1// Copyright 2017 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// This file is generated by net/tools/transport_security_state_generator/.
6// See transport_security_state_static.template for more information on the data
7// in this file.
8
9// Note that consumers must include <stdint.h>, "<iterator>", and
10// "net/http/transport_security_state_source.h", which this file cannot do
11// itself, since it's always included in a nested namespace.
12
13[[SPKI_HASHES]]
14
15static const char* const kNoRejectedPublicKeys[] = {
16    nullptr,
17};
18
19[[ACCEPTABLE_CERTS]]
20
21static const struct net::TransportSecurityStateSource::Pinset kPinsets[] = [[PINSETS]];
22
23static const uint8_t kHSTSHuffmanTree[] = [[HUFFMAN_TREE]];
24
25static const uint8_t kPreloadedHSTSData[] = [[HSTS_TRIE]];
26
27static const unsigned kPreloadedHSTSBits = [[HSTS_TRIE_BITS]];
28static const unsigned kHSTSRootPosition = [[HSTS_TRIE_ROOT]];
29
30static const net::TransportSecurityStateSource kHSTSSource = {
31  kHSTSHuffmanTree,
32  sizeof(kHSTSHuffmanTree),
33  kPreloadedHSTSData,
34  kPreloadedHSTSBits,
35  kHSTSRootPosition,
36  kPinsets,
37  std::size(kPinsets)
38};
39