OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_CERT_CT_SERIALIZATION_H_ | |
6 #define NET_CERT_CT_SERIALIZATION_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "base/strings/string_piece.h" | |
12 #include "net/base/net_export.h" | |
13 #include "net/cert/signed_certificate_timestamp.h" | |
14 | |
15 namespace net { | |
16 | |
17 // Utility functions for encoding/decoding structures used by Certificate | |
18 // Transparency to/from the TLS wire format encoding. | |
19 namespace ct { | |
20 | |
21 NET_EXPORT_PRIVATE bool EncodeDigitallySigned(const DigitallySigned& input, | |
22 std::string* output); | |
23 | |
24 NET_EXPORT_PRIVATE bool DecodeDigitallySigned(base::StringPiece* input, | |
wtc
2013/10/24 23:14:23
Since |input| is not const, I guess it is used as
Eran M. (Google)
2013/10/30 18:00:08
Done - moved the documentation from the .cc file.
| |
25 DigitallySigned* output); | |
26 | |
27 NET_EXPORT_PRIVATE bool EncodeLogEntry(const LogEntry& input, | |
28 std::string* output); | |
29 | |
30 NET_EXPORT_PRIVATE bool EncodeV1SCTSignedData( | |
31 const base::Time& timestamp, | |
32 const std::string& serialized_log_entry, | |
33 const std::string& extensions, | |
34 std::string* output); | |
35 | |
36 NET_EXPORT_PRIVATE bool DecodeSCTList(base::StringPiece* input, | |
37 std::vector<base::StringPiece>* output); | |
wtc
2013/10/24 23:14:23
This function should be documented. Ideally, every
Eran M. (Google)
2013/10/30 18:00:08
Done - moved the documentation.
| |
38 | |
39 NET_EXPORT_PRIVATE bool DecodeSignedCertificateTimestamp( | |
40 base::StringPiece* input, | |
41 ct::SignedCertificateTimestamp* output); | |
42 | |
43 } // namespace ct | |
44 | |
45 } // namespace net | |
46 | |
47 #endif // NET_CERT_CT_SERIALIZATION_H_ | |
OLD | NEW |