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

Unified Diff: net/cert/merkle_tree_leaf.cc

Issue 2107423004: Certificate Transparency: MerkleTreeLeaf, MerkleAuditProof improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing botched merge Created 4 years, 5 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
« no previous file with comments | « net/cert/merkle_tree_leaf.h ('k') | net/cert/merkle_tree_leaf_unittest.cc » ('j') | 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..5dfe08e350f02d19f65b49598893e8c50e1bfe47 100644
--- a/net/cert/merkle_tree_leaf.cc
+++ b/net/cert/merkle_tree_leaf.cc
@@ -15,9 +15,13 @@ namespace ct {
MerkleTreeLeaf::MerkleTreeLeaf() {}
-MerkleTreeLeaf::~MerkleTreeLeaf() {}
+MerkleTreeLeaf::MerkleTreeLeaf(const MerkleTreeLeaf& other) = default;
-bool Hash(const MerkleTreeLeaf& tree_leaf, std::string* out) {
+MerkleTreeLeaf::MerkleTreeLeaf(MerkleTreeLeaf&&) = default;
+
+MerkleTreeLeaf::~MerkleTreeLeaf() = default;
+
+bool HashMerkleTreeLeaf(const MerkleTreeLeaf& tree_leaf, std::string* out) {
// Prepend 0 byte as per RFC 6962, section-2.1
std::string leaf_in_tls_format("\x00", 1);
if (!EncodeTreeLeaf(tree_leaf, &leaf_in_tls_format))
@@ -44,7 +48,6 @@ bool GetMerkleTreeLeaf(const X509Certificate* cert,
}
}
- merkle_tree_leaf->log_id = sct->log_id;
merkle_tree_leaf->timestamp = sct->timestamp;
merkle_tree_leaf->extensions = sct->extensions;
return true;
« no previous file with comments | « net/cert/merkle_tree_leaf.h ('k') | net/cert/merkle_tree_leaf_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698