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