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

Unified Diff: download_action.cc

Issue 6778029: AU: detect failure when using public key verification (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: cleanup for review 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
« delta_performer.cc ('K') | « delta_performer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: download_action.cc
diff --git a/download_action.cc b/download_action.cc
index d6ae97dfefc5eec167fab74d725b7aba6ae85d33..50df92d546c5ece7ba479fab93c1da2c2cb74f5b 100644
--- a/download_action.cc
+++ b/download_action.cc
@@ -161,9 +161,11 @@ void DownloadAction::TransferComplete(HttpFetcher *fetcher, bool successful) {
successful ? kActionCodeSuccess : kActionCodeDownloadTransferError;
if (code == kActionCodeSuccess) {
if (!install_plan_.is_full_update) {
+ bool public_key_verify_failed = false; // TODO(adlr): don't ignore this.
if (!delta_performer_->VerifyPayload("",
install_plan_.download_hash,
- install_plan_.size)) {
+ install_plan_.size,
+ &public_key_verify_failed)) {
LOG(ERROR) << "Download of " << install_plan_.download_url
<< " failed due to payload verification error.";
code = kActionCodeDownloadPayloadVerificationError;
« delta_performer.cc ('K') | « delta_performer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698