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 #include "base/pickle.h" | 7 #include "base/pickle.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 void LogEntry::Reset() { | 82 void LogEntry::Reset() { |
83 type = LogEntry::LOG_ENTRY_TYPE_X509; | 83 type = LogEntry::LOG_ENTRY_TYPE_X509; |
84 leaf_certificate.clear(); | 84 leaf_certificate.clear(); |
85 tbs_certificate.clear(); | 85 tbs_certificate.clear(); |
86 } | 86 } |
87 | 87 |
88 DigitallySigned::DigitallySigned() {} | 88 DigitallySigned::DigitallySigned() {} |
89 | 89 |
90 DigitallySigned::~DigitallySigned() {} | 90 DigitallySigned::~DigitallySigned() {} |
91 | 91 |
| 92 bool DigitallySigned::SignatureParametersMatch( |
| 93 HashAlgorithm other_hash_algorithm, |
| 94 SignatureAlgorithm other_signature_algorithm) const { |
| 95 return (hash_algorithm == other_hash_algorithm) && |
| 96 (signature_algorithm == other_signature_algorithm); |
| 97 } |
92 } // namespace ct | 98 } // namespace ct |
93 | 99 |
94 } // namespace net | 100 } // namespace net |
OLD | NEW |