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

Unified Diff: net/cert/merkle_audit_proof.cc

Issue 2182533002: Adds a VerifyAuditProof method to CTLogVerifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 1 month 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_audit_proof.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_audit_proof.cc
diff --git a/net/cert/merkle_audit_proof.cc b/net/cert/merkle_audit_proof.cc
index 675485b25890108277e604ab9b9ef05a61231305..f1829af1f3ef89f32935ed7b1853cb1f7fd1fb71 100644
--- a/net/cert/merkle_audit_proof.cc
+++ b/net/cert/merkle_audit_proof.cc
@@ -29,12 +29,13 @@ uint64_t CalculateAuditPathLength(uint64_t leaf_index, uint64_t tree_size) {
}
MerkleAuditProof::MerkleAuditProof() {}
MerkleAuditProof::MerkleAuditProof(uint64_t leaf_index,
+ uint64_t tree_size,
const std::vector<std::string>& audit_path)
- : leaf_index(leaf_index), nodes(audit_path) {}
+ : leaf_index(leaf_index), tree_size(tree_size), nodes(audit_path) {}
MerkleAuditProof::~MerkleAuditProof() {}
} // namespace ct
} // namespace net
« no previous file with comments | « net/cert/merkle_audit_proof.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698