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

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: 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 691b18d96cb1b08be2fb8bf3abb87035a3c73353..e332ef624f5fed35288a381101f548a95cd298cb 100644
--- a/net/cert/ct_serialization.cc
+++ b/net/cert/ct_serialization.cc
@@ -354,6 +354,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);
Ryan Sleevi 2013/11/20 01:09:42 style nit: indent 4 spaces (or use clang-format /
Eran M. (Google) 2013/11/20 19:45:06 Done.
+}
+
} // namespace ct
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698