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

Side by Side Diff: net/cert/ct_serialization.h

Issue 37633002: CT: First step towards supporting Certificate Transparency in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/cert/ct_serialization.cc » ('j') | net/cert/ct_serialization.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | net/cert/ct_serialization.cc » ('j') | net/cert/ct_serialization.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698