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

Unified Diff: net/cert/merkle_tree_leaf.cc

Issue 2017563002: Add Certificate Transparency logs auditing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« net/cert/merkle_tree_leaf.h ('K') | « net/cert/merkle_tree_leaf.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/merkle_tree_leaf.cc
diff --git a/net/cert/merkle_tree_leaf.cc b/net/cert/merkle_tree_leaf.cc
index 21e2814402cacc2adfb1aa90d90ec38472e1bf11..8e0bfa2bfcfc0df1ac764979679b2c3eee7a0b39 100644
--- a/net/cert/merkle_tree_leaf.cc
+++ b/net/cert/merkle_tree_leaf.cc
@@ -15,6 +15,12 @@ namespace ct {
MerkleTreeLeaf::MerkleTreeLeaf() {}
+MerkleTreeLeaf::MerkleTreeLeaf(const MerkleTreeLeaf& other)
+ : log_id(other.log_id),
+ log_entry(other.log_entry),
+ timestamp(other.timestamp),
+ extensions(other.extensions) {}
+
MerkleTreeLeaf::~MerkleTreeLeaf() {}
bool Hash(const MerkleTreeLeaf& tree_leaf, std::string* out) {
@@ -50,6 +56,9 @@ bool GetMerkleTreeLeaf(const X509Certificate* cert,
return true;
}
+NET_EXPORT bool CompareLeaves(const MerkleTreeLeaf& lhs,
+ const MerkleTreeLeaf& rhs);
Rob Percival 2016/05/26 17:33:15 I assume this shouldn't be here?
Eran Messeri 2016/06/30 19:58:28 Correct.
+
} // namespace ct
} // namespace net
« net/cert/merkle_tree_leaf.h ('K') | « net/cert/merkle_tree_leaf.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698