| 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
|
|
|