diff options
Diffstat (limited to 'net/cert/ct_serialization.cc')
-rw-r--r-- | net/cert/ct_serialization.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/cert/ct_serialization.cc b/net/cert/ct_serialization.cc index c139ec9e..2aeb71a 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 |