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

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

Issue 997533002: Certificate Transparency: Correctly handle SCT origin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | net/cert/signed_certificate_timestamp.cc » ('j') | no next file with comments »
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_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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 void Persist(Pickle* pickle); 108 void Persist(Pickle* pickle);
109 static scoped_refptr<SignedCertificateTimestamp> CreateFromPickle( 109 static scoped_refptr<SignedCertificateTimestamp> CreateFromPickle(
110 PickleIterator* iter); 110 PickleIterator* iter);
111 111
112 Version version; 112 Version version;
113 std::string log_id; 113 std::string log_id;
114 base::Time timestamp; 114 base::Time timestamp;
115 std::string extensions; 115 std::string extensions;
116 DigitallySigned signature; 116 DigitallySigned signature;
117 // The origin should not participate in equality checks
118 // as the same SCT can be provided from multiple sources.
119 Origin origin; 117 Origin origin;
120 // The log description is not one of the SCT fields, but a user-readable 118 // The log description is not one of the SCT fields, but a user-readable
121 // name defined alongside the log key. It should not participate 119 // name defined alongside the log key. It should not participate
122 // in equality checks as the log's description could change while 120 // in equality checks as the log's description could change while
123 // the SCT would be the same. 121 // the SCT would be the same.
124 std::string log_description; 122 std::string log_description;
125 123
126 private: 124 private:
127 friend class base::RefCountedThreadSafe<SignedCertificateTimestamp>; 125 friend class base::RefCountedThreadSafe<SignedCertificateTimestamp>;
128 126
129 ~SignedCertificateTimestamp(); 127 ~SignedCertificateTimestamp();
130 128
131 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp); 129 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp);
132 }; 130 };
133 131
134 } // namespace ct 132 } // namespace ct
135 133
136 } // namespace net 134 } // namespace net
137 135
138 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ 136 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_
OLDNEW
« no previous file with comments | « no previous file | net/cert/signed_certificate_timestamp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698