Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1450)

Unified Diff: net/http/transport_security_state_structs.h

Issue 2726873003: Make transport security state data source configurable. (Closed)
Patch Set: Add TransportSecurityStateSource struct. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/transport_security_state_structs.h
diff --git a/net/http/transport_security_state_structs.h b/net/http/transport_security_state_structs.h
new file mode 100644
index 0000000000000000000000000000000000000000..40a90798311408d7554bbd1185246a46c228d4a4
--- /dev/null
+++ b/net/http/transport_security_state_structs.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#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
+#define NET_HTTP_TRANSPORT_SECURITY_STATE_STRUCTS_H_
+
+namespace net {
+
+struct Pinset {
+ const char* const* const accepted_pins;
+ const char* const* const rejected_pins;
+ const char* const report_uri;
+};
+
+struct TransportSecurityStateSource {
+ const uint8_t* huffman_tree;
+ size_t huffman_tree_size;
+ const uint8_t* preloaded_data;
+ size_t preloaded_bits;
+ size_t root_position;
+ const char* const* expect_ct_report_uris;
+ const char* const* expect_staple_report_uris;
+ 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.
+ size_t pinsets_count;
+};
+
+} // namespace net
+
+#endif // NET_HTTP_TRANSPORT_SECURITY_STATE_STRUCTS_H_

Powered by Google App Engine
This is Rietveld 408576698