| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file is generated by net/tools/transport_security_state_generator/. | |
| 6 | |
| 7 #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ | |
| 8 #define NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ | |
| 9 | |
| 10 #include <stdint.h> | |
| 11 | |
| 12 #include "net/http/transport_security_state_source.h" | |
| 13 | |
| 14 enum SecondLevelDomainName [[DOMAIN_IDS]]; | |
| 15 | |
| 16 // These are SubjectPublicKeyInfo hashes for public key pinning. The | |
| 17 // hashes are SHA256 digests. | |
| 18 [[SPKI_HASHES]] | |
| 19 | |
| 20 static const char* const kExpectCTReportURIs[] = [[EXPECT_CT_REPORT_URIS]]; | |
| 21 | |
| 22 static const char* const kExpectStapleReportURIs[] = [[EXPECT_STAPLE_REPORT_URIS
]]; | |
| 23 | |
| 24 // kNoRejectedPublicKeys is a placeholder for when no public keys are rejected. | |
| 25 static const char* const kNoRejectedPublicKeys[] = { | |
| 26 nullptr, | |
| 27 }; | |
| 28 | |
| 29 // kNoReportURI is a placeholder for when a pinset does not have a report URI. | |
| 30 static const char kNoReportURI[] = ""; | |
| 31 | |
| 32 [[ACCEPTABLE_CERTS]] | |
| 33 | |
| 34 static const net::TransportSecurityStateSource::Pinset kPinsets[] = [[PINSETS]]; | |
| 35 | |
| 36 // kHSTSHuffmanTree describes a Huffman tree. The nodes of the tree are pairs | |
| 37 // of uint8s. The last node in the array is the root of the tree. Each pair is | |
| 38 // two uint8_t values, the first is "left" and the second is "right". If a | |
| 39 // uint8_t value has the MSB set then it represents a literal leaf value. | |
| 40 // Otherwise it's a pointer to the n'th element of the array. | |
| 41 static const uint8_t kHSTSHuffmanTree[] = [[HUFFMAN_TREE]]; | |
| 42 | |
| 43 static const uint8_t kPreloadedHSTSData[] = [[HSTS_TRIE]]; | |
| 44 | |
| 45 static const unsigned kPreloadedHSTSBits = [[HSTS_TRIE_BITS]]; | |
| 46 static const unsigned kHSTSRootPosition = [[HSTS_TRIE_ROOT]]; | |
| 47 | |
| 48 static const net::TransportSecurityStateSource kHSTSSource = { | |
| 49 kHSTSHuffmanTree, | |
| 50 sizeof(kHSTSHuffmanTree), | |
| 51 kPreloadedHSTSData, | |
| 52 kPreloadedHSTSBits, | |
| 53 kHSTSRootPosition, | |
| 54 kExpectCTReportURIs, | |
| 55 kExpectStapleReportURIs, | |
| 56 kPinsets, | |
| 57 arraysize(kPinsets) | |
| 58 }; | |
| 59 | |
| 60 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ | |
| OLD | NEW |