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

Unified Diff: net/http/transport_security_state_source.h

Issue 2726873003: Make transport security state data source configurable. (Closed)
Patch Set: ternary Created 3 years, 9 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
« no previous file with comments | « net/http/transport_security_state.cc ('k') | net/http/transport_security_state_static.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/transport_security_state_source.h
diff --git a/net/http/transport_security_state_source.h b/net/http/transport_security_state_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..206746d04bad4d331748605bf7b680881ffd404b
--- /dev/null
+++ b/net/http/transport_security_state_source.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_SOURCE_H_
+#define NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_
+
+namespace net {
+
+struct TransportSecurityStateSource {
+ struct Pinset {
+ const char* const* const accepted_pins;
+ const char* const* const rejected_pins;
+ const char* const report_uri;
+ };
+
+ 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 Pinset* pinsets;
+ size_t pinsets_count;
+};
+
+} // namespace net
+
+#endif // NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_
« no previous file with comments | « net/http/transport_security_state.cc ('k') | net/http/transport_security_state_static.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698