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

Unified Diff: delta_diff_generator.h

Issue 3132033: AU: Sign delta payloads (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: fixes for review Created 10 years, 4 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 | « no previous file | delta_diff_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: delta_diff_generator.h
diff --git a/delta_diff_generator.h b/delta_diff_generator.h
index efc47478fe4b518867a0a4a3124bebd0fed7a5df..31f9e6494bacc1992148a24ee855f5af6c856c3c 100644
--- a/delta_diff_generator.h
+++ b/delta_diff_generator.h
@@ -42,6 +42,8 @@ class DeltaDiffGenerator {
// mounted read-only at paths old_root and new_root respectively.
// {old,new}_kernel_part are paths to the old and new kernel partition
// images, respectively.
+ // private_key_path points to a private key used to sign the update.
+ // Pass empty string to not sign the update.
// output_path is the filename where the delta update should be written.
// Returns true on success.
static bool GenerateDeltaUpdateFile(const std::string& old_root,
@@ -50,7 +52,8 @@ class DeltaDiffGenerator {
const std::string& new_image,
const std::string& old_kernel_part,
const std::string& new_kernel_part,
- const std::string& output_path);
+ const std::string& output_path,
+ const std::string& private_key_path);
// These functions are public so that the unit tests can access them:
« no previous file with comments | « no previous file | delta_diff_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698