| OLD | NEW |
| 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 |
| OLD | NEW |