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

Unified Diff: omaha_response_handler_action.h

Issue 6574009: If a public key is present, disallow old style full payloads. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git@master
Patch Set: Created 9 years, 10 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 | « delta_performer.cc ('k') | omaha_response_handler_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_response_handler_action.h
diff --git a/omaha_response_handler_action.h b/omaha_response_handler_action.h
index 25c57e0e1d297e3e4883fceb7cd92f43f781d1ee..178513823e5fa9ad81bf08858f3e89416bf00b76 100644
--- a/omaha_response_handler_action.h
+++ b/omaha_response_handler_action.h
@@ -29,9 +29,7 @@ class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
public:
static const char kDeadlineFile[];
- OmahaResponseHandlerAction(PrefsInterface* prefs)
- : prefs_(prefs),
- got_no_update_response_(false) {}
+ OmahaResponseHandlerAction(PrefsInterface* prefs);
typedef ActionTraits<OmahaResponseHandlerAction>::InputObjectType
InputObjectType;
typedef ActionTraits<OmahaResponseHandlerAction>::OutputObjectType
@@ -53,6 +51,7 @@ class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
// Debugging/logging
static std::string StaticType() { return "OmahaResponseHandlerAction"; }
std::string Type() const { return StaticType(); }
+ void set_key_path(const std::string& path) { key_path_ = path; }
private:
// Assumes you want to install on the "other" device, where the other
@@ -74,6 +73,9 @@ class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
// True only if we got a response and the response said no updates
bool got_no_update_response_;
+ // Public key path to use for payload verification.
+ std::string key_path_;
+
DISALLOW_COPY_AND_ASSIGN(OmahaResponseHandlerAction);
};
« no previous file with comments | « delta_performer.cc ('k') | omaha_response_handler_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698