| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 NET_CERT_SIGNED_TREE_HEAD_H_ | 5 #ifndef NET_CERT_SIGNED_TREE_HEAD_H_ |
| 6 #define NET_CERT_SIGNED_TREE_HEAD_H_ | 6 #define NET_CERT_SIGNED_TREE_HEAD_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <iosfwd> | 10 #include <iosfwd> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 char sha256_root_hash[kSthRootHashLength]; | 45 char sha256_root_hash[kSthRootHashLength]; |
| 46 DigitallySigned signature; | 46 DigitallySigned signature; |
| 47 | 47 |
| 48 // Added in RFC6962-bis, Appendix A. Needed to identify which log | 48 // Added in RFC6962-bis, Appendix A. Needed to identify which log |
| 49 // this STH belongs to. | 49 // this STH belongs to. |
| 50 std::string log_id; | 50 std::string log_id; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 NET_EXPORT void PrintTo(const SignedTreeHead& sth, std::ostream* os); | 53 NET_EXPORT void PrintTo(const SignedTreeHead& sth, std::ostream* os); |
| 54 | 54 |
| 55 NET_EXPORT bool operator==(const SignedTreeHead& lhs, |
| 56 const SignedTreeHead& rhs); |
| 57 NET_EXPORT bool operator!=(const SignedTreeHead& lhs, |
| 58 const SignedTreeHead& rhs); |
| 59 |
| 55 } // namespace ct | 60 } // namespace ct |
| 56 | 61 |
| 57 } // namespace net | 62 } // namespace net |
| 58 | 63 |
| 59 #endif | 64 #endif |
| OLD | NEW |