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

Unified Diff: install_plan.h

Issue 3712003: AU: Verify source rootfs/kernel hashes before applying delta. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: verify source partitions only for new updates 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 | « filesystem_copier_action_unittest.cc ('k') | omaha_hash_calculator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: install_plan.h
diff --git a/install_plan.h b/install_plan.h
index 8dc42aa722f973d29226ed3a73c0651f41023be5..9911d3253bf6efece545291eab017850690c0d12 100644
--- a/install_plan.h
+++ b/install_plan.h
@@ -6,6 +6,8 @@
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_INSTALL_PLAN_H__
#include <string>
+#include <vector>
+
#include "base/logging.h"
// InstallPlan is a simple struct that contains relevant info for many
@@ -37,6 +39,8 @@ struct InstallPlan {
std::string download_hash; // hash of the data at the url
std::string install_path; // path to install device
std::string kernel_install_path; // path to kernel install device
+ std::vector<char> current_kernel_hash; // computed by FileSystemCopierAction
+ std::vector<char> current_rootfs_hash; // computed by FileSystemCopierAction
bool operator==(const InstallPlan& that) const {
return (is_full_update == that.is_full_update) &&
« no previous file with comments | « filesystem_copier_action_unittest.cc ('k') | omaha_hash_calculator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698