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

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

Issue 71633002: Convert SignedCertificateClass to be ref_counted, and add an SCTStore in which to store them. Add S… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: few lint fixes 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 | « net/cert/ct_serialization.cc ('k') | net/cert/sct_status_flags.h » ('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 (c) 2013 The Chromium Authors. All rights reserved. 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 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_VERIFY_RESULT_H_ 5 #ifndef NET_CERT_CT_VERIFY_RESULT_H_
6 #define NET_CERT_CT_VERIFY_RESULT_H_ 6 #define NET_CERT_CT_VERIFY_RESULT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h"
10 #include "net/cert/signed_certificate_timestamp.h" 11 #include "net/cert/signed_certificate_timestamp.h"
11 12
12 namespace net { 13 namespace net {
13 14
14 namespace ct { 15 namespace ct {
15 16
17 typedef std::vector<scoped_refptr<SignedCertificateTimestamp> > SCTList;
18
16 // XXX(rsleevi): Track more information for verified SCTs, such as each of 19 // XXX(rsleevi): Track more information for verified SCTs, such as each of
17 // the computed entry types (since both x509_cert and pre_cert are valid entry 20 // the computed entry types (since both x509_cert and pre_cert are valid entry
18 // types during verification), as well as their respective Merkle leaf hashes 21 // types during verification), as well as their respective Merkle leaf hashes
19 // for gossip protocol. 22 // for gossip protocol.
20 // 23 //
21 // For now, it's sufficient to leave this as something minimal, since it is 24 // For now, it's sufficient to leave this as something minimal, since it is
22 // not presently surfaced to users. 25 // not presently surfaced to users.
23 struct NET_EXPORT CTVerifyResult { 26 struct NET_EXPORT CTVerifyResult {
24 CTVerifyResult(); 27 CTVerifyResult();
25 ~CTVerifyResult(); 28 ~CTVerifyResult();
26 29
27 std::vector<SignedCertificateTimestamp> verified_scts; 30 SCTList verified_scts;
28 std::vector<SignedCertificateTimestamp> unverified_scts; 31 SCTList unverified_scts;
29 }; 32 };
30 33
31 } // namespace ct 34 } // namespace ct
32 35
33 } // namespace net 36 } // namespace net
34 37
35 #endif // NET_CERT_CT_VERIFY_RESULT_H_ 38 #endif // NET_CERT_CT_VERIFY_RESULT_H_
OLDNEW
« no previous file with comments | « net/cert/ct_serialization.cc ('k') | net/cert/sct_status_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698