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

Unified Diff: net/cert/ct_log_response_parser.h

Issue 230713002: Certificate Transparency: Parse Signed Tree Heads and validate them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly exporting symbol Created 6 years, 8 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 | « no previous file | net/cert/ct_log_response_parser.cc » ('j') | net/cert/ct_log_response_parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/ct_log_response_parser.h
diff --git a/net/cert/ct_log_response_parser.h b/net/cert/ct_log_response_parser.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c1fe1d8b5b4d2745960d3aec33b7c6f8ebf412a
--- /dev/null
+++ b/net/cert/ct_log_response_parser.h
@@ -0,0 +1,27 @@
+// Copyright 2014 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_CERT_CT_LOG_RESPONSE_PARSER_H_
+#define NET_CERT_CT_LOG_RESPONSE_PARSER_H_
+
+#include "base/strings/string_piece.h"
+#include "net/base/net_export.h"
+
+namespace net {
+
+namespace ct {
+struct SignedTreeHead;
+
+// Fills in |signed_tree_head| from its JSON representation in
+// |json_signed_tree_head|.
+// Returns true and fills in |signed_tree_head| if all fields are present and
+// valid.Otherwise, returns false and does not modify |signed_tree_head|.
+bool NET_EXPORT
+ FillSignedTreeHead(const base::StringPiece& json_signed_tree_head,
+ SignedTreeHead* signed_tree_head);
Ryan Sleevi 2014/04/25 23:33:19 Was this the format done by git-cl-format? note t
Eran Messeri 2014/04/29 15:22:24 Done - re-ordered so NET_EXPORT is first.
+
+} // namespace ct
+
+} // namespace net
+#endif // NET_CERT_CT_LOG_RESPONSE_PARSER_H_
« no previous file with comments | « no previous file | net/cert/ct_log_response_parser.cc » ('j') | net/cert/ct_log_response_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698