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

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: Fixed using of released pointer. 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..a89d05b29700f16a4aa6bddf0b0620858db8eba8 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);
+}
+
} // namespace ct
} // namespace net
« no previous file with comments | « net/cert/ct_serialization.h ('k') | net/cert/ct_verifier.h » ('j') | net/cert/ct_verifier.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698