| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MERKLE_CONSISTENCY_PROOF_H_ | 5 #ifndef NET_CERT_MERKLE_CONSISTENCY_PROOF_H_ |
| 6 #define NET_CERT_MERKLE_CONSISTENCY_PROOF_H_ | 6 #define NET_CERT_MERKLE_CONSISTENCY_PROOF_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <cstdint> |
| 9 | 9 #include <ostream> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 namespace ct { | 17 namespace ct { |
| 18 | 18 |
| 19 // Consistency proof between two STHs as defined in section 2.1.2. of RFC6962. | 19 // Consistency proof between two STHs as defined in section 2.1.2. of RFC6962. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 // Consistency proof nodes. | 31 // Consistency proof nodes. |
| 32 std::vector<std::string> nodes; | 32 std::vector<std::string> nodes; |
| 33 | 33 |
| 34 // Size of the older tree. | 34 // Size of the older tree. |
| 35 uint64_t first_tree_size = 0; | 35 uint64_t first_tree_size = 0; |
| 36 | 36 |
| 37 // Size of the newer tree. | 37 // Size of the newer tree. |
| 38 uint64_t second_tree_size = 0; | 38 uint64_t second_tree_size = 0; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 NET_EXPORT bool operator==(const MerkleConsistencyProof& proof1, |
| 42 const MerkleConsistencyProof& proof2); |
| 43 |
| 44 NET_EXPORT std::ostream& operator<<(std::ostream& stream, |
| 45 const MerkleConsistencyProof& proof); |
| 46 |
| 41 } // namespace ct | 47 } // namespace ct |
| 42 | 48 |
| 43 } // namespace net | 49 } // namespace net |
| 44 | 50 |
| 45 #endif // NET_CERT_MERKLE_CONSISTENCY_PROOF_H_ | 51 #endif // NET_CERT_MERKLE_CONSISTENCY_PROOF_H_ |
| OLD | NEW |