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

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

Issue 1943313003: Adds a function for encoding a Merkle tree leaf in TLS wire format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates TODO about Version enums Created 4 years, 7 months 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
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_SIGNED_CERTIFICATE_TIMESTAMP_H_ 5 #ifndef NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_
6 #define NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ 6 #define NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 : public base::RefCountedThreadSafe<SignedCertificateTimestamp> { 86 : public base::RefCountedThreadSafe<SignedCertificateTimestamp> {
87 // Predicate functor used in maps when SignedCertificateTimestamp is used as 87 // Predicate functor used in maps when SignedCertificateTimestamp is used as
88 // the key. 88 // the key.
89 struct NET_EXPORT LessThan { 89 struct NET_EXPORT LessThan {
90 bool operator()(const scoped_refptr<SignedCertificateTimestamp>& lhs, 90 bool operator()(const scoped_refptr<SignedCertificateTimestamp>& lhs,
91 const scoped_refptr<SignedCertificateTimestamp>& rhs) const; 91 const scoped_refptr<SignedCertificateTimestamp>& rhs) const;
92 }; 92 };
93 93
94 // Version enum in RFC 6962, Section 3.2. 94 // Version enum in RFC 6962, Section 3.2.
95 enum Version { 95 enum Version {
96 // TODO(robpercival): Fix inconsistent naming between this and
Eran Messeri 2016/05/05 15:59:33 Not convinced about the value of this TODO - if it
Rob Percival 2016/05/05 17:31:43 Done in https://codereview.chromium.org/1951233003
97 // SignedTreeHead::Version.
96 SCT_VERSION_1 = 0, 98 SCT_VERSION_1 = 0,
97 }; 99 };
98 100
99 // Source of the SCT - supplementary, not defined in CT RFC. 101 // Source of the SCT - supplementary, not defined in CT RFC.
100 // Note: The numeric values are used within histograms and should not change 102 // Note: The numeric values are used within histograms and should not change
101 // or be re-assigned. 103 // or be re-assigned.
102 enum Origin { 104 enum Origin {
103 SCT_EMBEDDED = 0, 105 SCT_EMBEDDED = 0,
104 SCT_FROM_TLS_EXTENSION = 1, 106 SCT_FROM_TLS_EXTENSION = 1,
105 SCT_FROM_OCSP_RESPONSE = 2, 107 SCT_FROM_OCSP_RESPONSE = 2,
(...skipping 24 matching lines...) Expand all
130 ~SignedCertificateTimestamp(); 132 ~SignedCertificateTimestamp();
131 133
132 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp); 134 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp);
133 }; 135 };
134 136
135 } // namespace ct 137 } // namespace ct
136 138
137 } // namespace net 139 } // namespace net
138 140
139 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ 141 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698