Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 5 #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_STRUCTS_H_ | |
|
Ryan Sleevi
2017/03/13 18:31:18
So we generally try to avoid naming 'catchall cloa
martijnc
2017/03/13 21:51:40
Not really sure what you mean but I'be made Pinset
Ryan Sleevi
2017/03/13 21:59:40
Well, mostly because "_structs" is a catchall, lik
martijnc
2017/03/13 22:47:58
Ah, I was a bit confused by what you meant by "imp
| |
| 6 #define NET_HTTP_TRANSPORT_SECURITY_STATE_STRUCTS_H_ | |
| 7 | |
| 8 namespace net { | |
| 9 | |
| 10 struct Pinset { | |
| 11 const char* const* const accepted_pins; | |
| 12 const char* const* const rejected_pins; | |
| 13 const char* const report_uri; | |
| 14 }; | |
| 15 | |
| 16 struct TransportSecurityStateSource { | |
| 17 const uint8_t* huffman_tree; | |
| 18 size_t huffman_tree_size; | |
| 19 const uint8_t* preloaded_data; | |
| 20 size_t preloaded_bits; | |
| 21 size_t root_position; | |
| 22 const char* const* expect_ct_report_uris; | |
| 23 const char* const* expect_staple_report_uris; | |
| 24 const struct Pinset* pinsets; | |
|
Ryan Sleevi
2017/03/13 21:59:40
No need to "struct pinset" this, since you define
martijnc
2017/03/13 22:47:58
Done.
| |
| 25 size_t pinsets_count; | |
| 26 }; | |
| 27 | |
| 28 } // namespace net | |
| 29 | |
| 30 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_STRUCTS_H_ | |
| OLD | NEW |