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

Unified Diff: net/test/ct_test_util.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: Addressing more of Ryan's comments Created 6 years, 7 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/net.gypi ('k') | net/test/ct_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/ct_test_util.h
diff --git a/net/test/ct_test_util.h b/net/test/ct_test_util.h
index 87afc104102d476f7642211f93faaeea52498c3b..f3b8c6b3f691e7ddf62dce341aca4ad85f8d7288 100644
--- a/net/test/ct_test_util.h
+++ b/net/test/ct_test_util.h
@@ -15,6 +15,7 @@ namespace ct {
struct LogEntry;
struct SignedCertificateTimestamp;
+struct SignedTreeHead;
// Note: unless specified otherwise, all test data is taken from Certificate
// Transparency test data repository.
@@ -62,6 +63,12 @@ std::string GetDerEncodedFakeOCSPResponseCert();
// The issuer of the previous cert.
std::string GetDerEncodedFakeOCSPResponseIssuerCert();
+// A sample, valid STH
+void GetSignedTreeHead(SignedTreeHead* sth);
+
+// The SHA256 root hash for the sample STH
+std::string GetSampleSTHSHA256RootHash();
+
} // namespace ct
} // namespace net
« no previous file with comments | « net/net.gypi ('k') | net/test/ct_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698