Chromium Code Reviews| 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 #ifndef CONTENT_PUBLIC_COMMON_SIGNED_CERTIFICATE_TIMESTAMP_ID_AND_STATUS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_SIGNED_CERTIFICATE_TIMESTAMP_ID_AND_STATUS_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_SIGNED_CERTIFICATE_TIMESTAMP_ID_AND_STATUS_H_ | 6 #define CONTENT_PUBLIC_COMMON_SIGNED_CERTIFICATE_TIMESTAMP_ID_AND_STATUS_H_ |
| 7 | 7 |
| 8 #include <string> | |
| 8 #include <vector> | 9 #include <vector> |
| 9 | 10 |
| 10 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 11 #include "net/cert/sct_status_flags.h" | 12 #include "net/cert/sct_status_flags.h" |
| 13 #include "net/cert/signed_certificate_timestamp.h" | |
| 12 | 14 |
| 13 namespace content { | 15 namespace content { |
| 14 | 16 |
| 15 // Holds the ID of a SignedCertificateTimestamp (as assigned by | 17 // Holds the ID of a SignedCertificateTimestamp (as assigned by |
| 16 // SignedCertificateTimestampStore), and its verification status. | 18 // SignedCertificateTimestampStore), and its verification status. |
| 17 struct CONTENT_EXPORT SignedCertificateTimestampIDAndStatus { | 19 struct CONTENT_EXPORT SignedCertificateTimestampIDAndStatus { |
| 18 SignedCertificateTimestampIDAndStatus( | 20 SignedCertificateTimestampIDAndStatus( |
| 19 int id, net::ct::SCTVerifyStatus status); | 21 int id, |
|
Eran Messeri
2016/03/09 20:58:47
I think you're missing the point of the SCT ID - y
| |
| 22 net::ct::SCTVerifyStatus status, | |
| 23 net::ct::SignedCertificateTimestamp::Version version, | |
| 24 std::string logId, | |
| 25 int64_t timestamp, | |
| 26 net::ct::DigitallySigned signature, | |
| 27 net::ct::SignedCertificateTimestamp::Origin origin, | |
| 28 std::string logDescription); | |
| 20 | 29 |
| 21 bool operator==(const SignedCertificateTimestampIDAndStatus& other) const; | 30 bool operator==(const SignedCertificateTimestampIDAndStatus& other) const; |
| 22 | 31 |
| 23 int id; | 32 int id; |
| 24 net::ct::SCTVerifyStatus status; | 33 net::ct::SCTVerifyStatus status; |
| 34 net::ct::SignedCertificateTimestamp::Version version; | |
| 35 std::string logId; | |
| 36 int64_t timestamp; // milliseconds since the epoch | |
| 37 net::ct::DigitallySigned signature; | |
| 38 net::ct::SignedCertificateTimestamp::Origin origin; | |
| 39 std::string logDescription; | |
| 25 }; | 40 }; |
| 26 | 41 |
| 27 typedef std::vector<SignedCertificateTimestampIDAndStatus> | 42 typedef std::vector<SignedCertificateTimestampIDAndStatus> |
| 28 SignedCertificateTimestampIDStatusList; | 43 SignedCertificateTimestampIDStatusList; |
| 29 | 44 |
| 30 } // namespace content | 45 } // namespace content |
| 31 | 46 |
| 32 #endif // CONTENT_PUBLIC_COMMON_SIGNED_CERTIFICATE_TIMESTAMP_ID_AND_STATUS_H_ | 47 #endif // CONTENT_PUBLIC_COMMON_SIGNED_CERTIFICATE_TIMESTAMP_ID_AND_STATUS_H_ |
| OLD | NEW |