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

Unified Diff: delta_performer.h

Issue 6778029: AU: detect failure when using public key verification (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: merge master Created 9 years, 9 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_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 7cc1d9bf7378804fda2fb8a3b12dc30d75b3174e..a80e180f8c798e234b08512c04c3fbc36bc1c3aa 100644
--- a/delta_performer.h
+++ b/delta_performer.h
@@ -67,9 +67,12 @@ class DeltaPerformer : public FileWriter {
// is unavailable; it returns false if the public key is available but the
// delta payload doesn't include a signature. If |public_key_path| is an empty
// string, uses the default public key path.
+ // If the signature check fails, *signature_failed will be set to true (if
+ // it's non-NULL); this will not cause the method to fail.
bool VerifyPayload(const std::string& public_key_path,
const std::string& update_check_response_hash,
- const uint64_t update_check_response_size);
+ const uint64_t update_check_response_size,
+ bool* signature_failed);
// Reads from the update manifest the expected sizes and hashes of the target
// kernel and rootfs partitions. These values can be used for applied update
« no previous file with comments | « no previous file | delta_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698