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

Unified Diff: net/cert/merkle_audit_proof.cc

Issue 2017563002: Add Certificate Transparency logs auditing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows compilation issue Created 3 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_audit_proof.cc
diff --git a/net/cert/merkle_audit_proof.cc b/net/cert/merkle_audit_proof.cc
index f1829af1f3ef89f32935ed7b1853cb1f7fd1fb71..f4bc40e74bad1f6afadb96daf5c8972602cd208e 100644
--- a/net/cert/merkle_audit_proof.cc
+++ b/net/cert/merkle_audit_proof.cc
@@ -30,6 +30,11 @@ uint64_t CalculateAuditPathLength(uint64_t leaf_index, uint64_t tree_size) {
MerkleAuditProof::MerkleAuditProof() {}
+MerkleAuditProof::MerkleAuditProof(const MerkleAuditProof& other)
+ : leaf_index(other.leaf_index),
+ tree_size(other.tree_size),
+ nodes(other.nodes) {}
Ryan Sleevi 2017/01/20 12:53:21 Why not just = default?
Eran Messeri 2017/01/23 16:45:47 Done (may not have been possible to use = default
+
MerkleAuditProof::MerkleAuditProof(uint64_t leaf_index,
uint64_t tree_size,
const std::vector<std::string>& audit_path)

Powered by Google App Engine
This is Rietveld 408576698