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

Unified Diff: net/test/ct_test_util.h

Issue 1943313003: Adds a function for encoding a Merkle tree leaf in TLS wire format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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/cert/ct_serialization_unittest.cc ('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 d3df6e62d9baa1ec0174620739833549f7a35c92..649b87c0824dcff28d707bbcd5555f06940caa98 100644
--- a/net/test/ct_test_util.h
+++ b/net/test/ct_test_util.h
@@ -21,6 +21,7 @@ namespace ct {
struct CTVerifyResult;
struct DigitallySigned;
struct LogEntry;
+struct MerkleTreeLeaf;
struct SignedTreeHead;
// Note: unless specified otherwise, all test data is taken from Certificate
@@ -29,6 +30,9 @@ struct SignedTreeHead;
// Fills |entry| with test data for an X.509 entry.
void GetX509CertLogEntry(LogEntry* entry);
+// Fills |tree_leaf| with test data for an X.509 Merkle tree leaf.
+void GetX509CertTreeLeaf(MerkleTreeLeaf* tree_leaf);
+
// Returns a DER-encoded X509 cert. The SCT provided by
// GetX509CertSCT is signed over this certificate.
std::string GetDerEncodedX509Cert();
@@ -36,6 +40,9 @@ std::string GetDerEncodedX509Cert();
// Fills |entry| with test data for a Precertificate entry.
void GetPrecertLogEntry(LogEntry* entry);
+// Fills |tree_leaf| with test data for a Precertificate Merkle tree leaf.
+void GetPrecertTreeLeaf(MerkleTreeLeaf* tree_leaf);
+
// Returns the binary representation of a test DigitallySigned
std::string GetTestDigitallySigned();
« no previous file with comments | « net/cert/ct_serialization_unittest.cc ('k') | net/test/ct_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698