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

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

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/signed_certificate_timestamp.h ('k') | net/cert/single_log_ct_verifier.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 #include "net/cert/signed_certificate_timestamp.h" 5 #include "net/cert/signed_certificate_timestamp.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 namespace ct { 9 namespace ct {
10 10
11 bool SignedCertificateTimestamp::LessThan::operator()(
12 const scoped_refptr<SignedCertificateTimestamp>& lhs,
13 const scoped_refptr<SignedCertificateTimestamp>& rhs) const {
14 if (lhs.get() == rhs.get())
15 return false;
16
17 return lhs->signature.signature_data < rhs->signature.signature_data;
18 }
19
11 SignedCertificateTimestamp::SignedCertificateTimestamp() {} 20 SignedCertificateTimestamp::SignedCertificateTimestamp() {}
12 21
13 SignedCertificateTimestamp::~SignedCertificateTimestamp() {} 22 SignedCertificateTimestamp::~SignedCertificateTimestamp() {}
14 23
15 LogEntry::LogEntry() {} 24 LogEntry::LogEntry() {}
16 25
17 LogEntry::~LogEntry() {} 26 LogEntry::~LogEntry() {}
18 27
19 void LogEntry::Reset() { 28 void LogEntry::Reset() {
20 type = LogEntry::LOG_ENTRY_TYPE_X509; 29 type = LogEntry::LOG_ENTRY_TYPE_X509;
21 leaf_certificate.clear(); 30 leaf_certificate.clear();
22 tbs_certificate.clear(); 31 tbs_certificate.clear();
23 } 32 }
24 33
25 DigitallySigned::DigitallySigned() {} 34 DigitallySigned::DigitallySigned() {}
26 35
27 DigitallySigned::~DigitallySigned() {} 36 DigitallySigned::~DigitallySigned() {}
28 37
29 } // namespace ct 38 } // namespace ct
30 39
31 } // namespace net 40 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/signed_certificate_timestamp.h ('k') | net/cert/single_log_ct_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698