OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is generated by net/tools/transport_security_state_generator/. | 5 // This file is generated by net/tools/transport_security_state_generator/. |
6 | 6 |
7 #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ | 7 #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ |
8 #define NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ | 8 #define NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 | 11 |
| 12 #include "net/http/transport_security_state_structs.h" |
| 13 |
12 enum SecondLevelDomainName [[DOMAIN_IDS]]; | 14 enum SecondLevelDomainName [[DOMAIN_IDS]]; |
13 | 15 |
14 // These are SubjectPublicKeyInfo hashes for public key pinning. The | 16 // These are SubjectPublicKeyInfo hashes for public key pinning. The |
15 // hashes are SHA256 digests. | 17 // hashes are SHA256 digests. |
16 [[SPKI_HASHES]] | 18 [[SPKI_HASHES]] |
17 | 19 |
18 static const char* const kExpectCTReportURIs[] = [[EXPECT_CT_REPORT_URIS]]; | 20 static const char* const kExpectCTReportURIs[] = [[EXPECT_CT_REPORT_URIS]]; |
19 | 21 |
20 static const char* const kExpectStapleReportURIs[] = [[EXPECT_STAPLE_REPORT_URIS
]]; | 22 static const char* const kExpectStapleReportURIs[] = [[EXPECT_STAPLE_REPORT_URIS
]]; |
21 | 23 |
22 // kNoRejectedPublicKeys is a placeholder for when no public keys are rejected. | 24 // kNoRejectedPublicKeys is a placeholder for when no public keys are rejected. |
23 static const char* const kNoRejectedPublicKeys[] = { | 25 static const char* const kNoRejectedPublicKeys[] = { |
24 NULL, | 26 NULL, |
25 }; | 27 }; |
26 | 28 |
27 // kNoReportURI is a placeholder for when a pinset does not have a report URI. | 29 // kNoReportURI is a placeholder for when a pinset does not have a report URI. |
28 static const char kNoReportURI[] = ""; | 30 static const char kNoReportURI[] = ""; |
29 | 31 |
30 [[ACCEPTABLE_CERTS]] | 32 [[ACCEPTABLE_CERTS]] |
31 | 33 |
32 struct Pinset { | 34 static const struct net::Pinset kPinsets[] = [[PINSETS]]; |
33 const char* const* const accepted_pins; | |
34 const char* const* const rejected_pins; | |
35 const char* const report_uri; | |
36 }; | |
37 | |
38 static const struct Pinset kPinsets[] = [[PINSETS]]; | |
39 | 35 |
40 // kHSTSHuffmanTree describes a Huffman tree. The nodes of the tree are pairs | 36 // kHSTSHuffmanTree describes a Huffman tree. The nodes of the tree are pairs |
41 // of uint8s. The last node in the array is the root of the tree. Each pair is | 37 // of uint8s. The last node in the array is the root of the tree. Each pair is |
42 // two uint8_t values, the first is "left" and the second is "right". If a | 38 // two uint8_t values, the first is "left" and the second is "right". If a |
43 // uint8_t value has the MSB set then it represents a literal leaf value. | 39 // uint8_t value has the MSB set then it represents a literal leaf value. |
44 // Otherwise it's a pointer to the n'th element of the array. | 40 // Otherwise it's a pointer to the n'th element of the array. |
45 static const uint8_t kHSTSHuffmanTree[] = [[HUFFMAN_TREE]]; | 41 static const uint8_t kHSTSHuffmanTree[] = [[HUFFMAN_TREE]]; |
46 | 42 |
47 static const uint8_t kPreloadedHSTSData[] = [[HSTS_TRIE]]; | 43 static const uint8_t kPreloadedHSTSData[] = [[HSTS_TRIE]]; |
48 | 44 |
49 static const unsigned kPreloadedHSTSBits = [[HSTS_TRIE_BITS]]; | 45 static const unsigned kPreloadedHSTSBits = [[HSTS_TRIE_BITS]]; |
50 static const unsigned kHSTSRootPosition = [[HSTS_TRIE_ROOT]]; | 46 static const unsigned kHSTSRootPosition = [[HSTS_TRIE_ROOT]]; |
51 | 47 |
52 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ | 48 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ |
OLD | NEW |