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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: net/cert/merkle_consistency_proof.h
diff --git a/net/cert/merkle_consistency_proof.h b/net/cert/merkle_consistency_proof.h
index 48a70dc5eaa8e69905f90cecd9bb6c3e2bec7d00..cddc64e00c2afd4fc7318ba3a0903eab20f6a280 100644
--- a/net/cert/merkle_consistency_proof.h
+++ b/net/cert/merkle_consistency_proof.h
@@ -5,8 +5,8 @@
#ifndef NET_CERT_MERKLE_CONSISTENCY_PROOF_H_
#define NET_CERT_MERKLE_CONSISTENCY_PROOF_H_
-#include <stdint.h>
-
+#include <cstdint>
+#include <ostream>
#include <string>
#include <vector>
@@ -38,6 +38,12 @@ struct NET_EXPORT MerkleConsistencyProof {
uint64_t second_tree_size = 0;
};
+NET_EXPORT bool operator==(const MerkleConsistencyProof& proof1,
+ const MerkleConsistencyProof& proof2);
+
+NET_EXPORT std::ostream& operator<<(std::ostream& stream,
+ const MerkleConsistencyProof& proof);
+
} // namespace ct
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698