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

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

Issue 67513008: Certificate Transparency: Add the high-level interface for verifying SCTs over multiple logs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging with master 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 | Annotate | Revision Log
« 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_CERT_CT_SERIALIZATION_H_ 5 #ifndef NET_CERT_CT_SERIALIZATION_H_
6 #define NET_CERT_CT_SERIALIZATION_H_ 6 #define NET_CERT_CT_SERIALIZATION_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 NET_EXPORT_PRIVATE bool DecodeSCTList(base::StringPiece* input, 58 NET_EXPORT_PRIVATE bool DecodeSCTList(base::StringPiece* input,
59 std::vector<base::StringPiece>* output); 59 std::vector<base::StringPiece>* output);
60 60
61 // Decodes a single SCT from |input| to |output|. 61 // Decodes a single SCT from |input| to |output|.
62 // Returns true if all fields in the SCT could be read and decoded, false 62 // Returns true if all fields in the SCT could be read and decoded, false
63 // otherwise. 63 // otherwise.
64 NET_EXPORT_PRIVATE bool DecodeSignedCertificateTimestamp( 64 NET_EXPORT_PRIVATE bool DecodeSignedCertificateTimestamp(
65 base::StringPiece* input, 65 base::StringPiece* input,
66 scoped_refptr<ct::SignedCertificateTimestamp>* output); 66 scoped_refptr<ct::SignedCertificateTimestamp>* output);
67 67
68 // Writes an SCTList into |output|, containing a single |sct|.
69 NET_EXPORT_PRIVATE bool EncodeSCTListForTesting(const base::StringPiece& sct,
70 std::string* output);
68 } // namespace ct 71 } // namespace ct
69 72
70 } // namespace net 73 } // namespace net
71 74
72 #endif // NET_CERT_CT_SERIALIZATION_H_ 75 #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