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 "content/public/common/signed_certificate_timestamp_id_and_status.h" | 5 #include "content/public/common/signed_certificate_timestamp_id_and_status.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 SignedCertificateTimestampIDAndStatus::SignedCertificateTimestampIDAndStatus( | 9 SignedCertificateTimestampIDAndStatus::SignedCertificateTimestampIDAndStatus( |
10 int id, net::ct::SCTVerifyStatus status) | 10 int id, |
11 : id(id), status(status) {} | 11 net::ct::SCTVerifyStatus status, |
| 12 net::ct::SignedCertificateTimestamp::Version version, |
| 13 std::string logId, |
| 14 int64_t timestamp, |
| 15 net::ct::DigitallySigned signature, |
| 16 net::ct::SignedCertificateTimestamp::Origin origin, |
| 17 std::string logDescription) |
| 18 : id(id) |
| 19 , status(status) |
| 20 , version(version) |
| 21 , logId(logId) |
| 22 , timestamp(timestamp) |
| 23 , signature(signature) |
| 24 , origin(origin) |
| 25 , logDescription(logDescription) |
| 26 { |
| 27 } |
12 | 28 |
13 bool SignedCertificateTimestampIDAndStatus::operator==( | 29 bool SignedCertificateTimestampIDAndStatus::operator==( |
14 const SignedCertificateTimestampIDAndStatus& other) const { | 30 const SignedCertificateTimestampIDAndStatus& other) const { |
15 return id == other.id && status == other.status; | 31 return id == other.id && status == other.status; |
| 32 // TODO also compare sct? |
16 } | 33 } |
17 | 34 |
18 } // namespace content | 35 } // namespace content |
OLD | NEW |