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

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: Merging with master 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
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..d6fcec2d6c54f4870022ce45850f3f1407cdc479 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
Ryan Sleevi 2014/05/08 01:11:54 SHA256
Eran Messeri 2014/05/12 20:33:55 Done, here and in one other place.
+std::string GetSampleSTHSha256RootHash();
+
} // namespace ct
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698