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

Unified Diff: net/test/ct_test_util.h

Issue 55953002: CT: Adding SCT verification functionality: A CTLogVerifier instance can verify SCTs signed by a sin… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 79881ce3b273a887b0a63b41c38d0ebf32791dde..f12e144e4244e26a21912226fb459feb9d61a3f9 100644
--- a/net/test/ct_test_util.h
+++ b/net/test/ct_test_util.h
@@ -16,6 +16,9 @@ namespace ct {
struct LogEntry;
struct SignedCertificateTimestamp;
+// Note: unless specified otherwise, all test data is taken from Certificate
+// Transparency test data repository.
+
// Fills |entry| with test data for an X.509 entry.
void GetX509CertLogEntry(LogEntry* entry);
@@ -28,6 +31,18 @@ std::string GetTestDigitallySigned();
// Returns the binary representation of a test serialized SCT.
std::string GetTestSignedCertificateTimestamp();
+// Test log key
+std::string GetTestPublicKey();
+
+// ID of test log key
+std::string GetTestPublicKeyId();
+
+// SCT for the X509Certificate provided above.
+void GetX509CertSCT(SignedCertificateTimestamp* sct);
+
+// SCT for the Precertificate log entry provided above.
+void GetPrecertSCT(SignedCertificateTimestamp* sct);
+
} // namespace ct
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698