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

Unified Diff: net/cert/ct_serialization.cc

Issue 67513008: Certificate Transparency: Add the high-level interface for verifying SCTs over multiple logs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging with master 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/cert/ct_serialization.cc
diff --git a/net/cert/ct_serialization.cc b/net/cert/ct_serialization.cc
index c139ec9e56713a3f927083d74a5617218f41f263..2aeb71a1b2971fb2601d6078d0e619f92b4d3619 100644
--- a/net/cert/ct_serialization.cc
+++ b/net/cert/ct_serialization.cc
@@ -355,6 +355,13 @@ bool DecodeSignedCertificateTimestamp(base::StringPiece* input,
return true;
}
+bool EncodeSCTListForTesting(const base::StringPiece& sct,
+ std::string* output) {
+ std::string encoded_sct;
+ return WriteVariableBytes(kSerializedSCTLengthBytes, sct, &encoded_sct) &&
+ WriteVariableBytes(kSCTListLengthBytes, encoded_sct, output);
+}
+
} // namespace ct
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698