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

Unified Diff: delta_performer.h

Issue 3599025: AU: Verify that the applied delta update matches the server-sent hashes. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Created 10 years, 2 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 | « action_processor.h ('k') | delta_performer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: delta_performer.h
diff --git a/delta_performer.h b/delta_performer.h
index 16073d821b0cf921bada428453015f0f8eaa8f00..7394f940acacb9b7d23c92744f547ff304f80fb3 100644
--- a/delta_performer.h
+++ b/delta_performer.h
@@ -63,6 +63,11 @@ class DeltaPerformer : public FileWriter {
const std::string& update_check_response_hash,
const uint64_t update_check_response_size);
+ // Verifies that the generated update is correct based on the hashes sent by
+ // the server. Returns true on success, false otherwise.
+ bool VerifyAppliedUpdate(const std::string& path,
+ const std::string& kernel_path);
+
// Converts an ordered collection of Extent objects which contain data of
// length full_length to a comma-separated string. For each Extent, the
// string will have the start offset and then the length in bytes.
« no previous file with comments | « action_processor.h ('k') | delta_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698