Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Side by Side Diff: net/cert/merkle_consistency_proof.h

Issue 1576513002: Serialisation code for Certificate Transparency data (Closed) Base URL: ssh://caladan.lon.corp.google.com/usr/local/google/eranm/opensource_clients/chrome/src@sth_consistency_validation_2
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698