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

Side by Side Diff: delta_performer.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « action_processor.h ('k') | delta_performer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__
7 7
8 #include <inttypes.h> 8 #include <inttypes.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 13 matching lines...) Expand all
24 // update itself should be passed in in chunks as it is received. 24 // update itself should be passed in in chunks as it is received.
25 25
26 class DeltaPerformer : public FileWriter { 26 class DeltaPerformer : public FileWriter {
27 public: 27 public:
28 enum MetadataParseResult { 28 enum MetadataParseResult {
29 kMetadataParseSuccess, 29 kMetadataParseSuccess,
30 kMetadataParseError, 30 kMetadataParseError,
31 kMetadataParseInsufficientData, 31 kMetadataParseInsufficientData,
32 }; 32 };
33 33
34 static const char kUpdatePayloadPublicKeyPath[];
35
34 DeltaPerformer(PrefsInterface* prefs) 36 DeltaPerformer(PrefsInterface* prefs)
35 : prefs_(prefs), 37 : prefs_(prefs),
36 fd_(-1), 38 fd_(-1),
37 kernel_fd_(-1), 39 kernel_fd_(-1),
38 manifest_valid_(false), 40 manifest_valid_(false),
39 manifest_metadata_size_(0), 41 manifest_metadata_size_(0),
40 next_operation_num_(0), 42 next_operation_num_(0),
41 buffer_offset_(0), 43 buffer_offset_(0),
42 last_updated_buffer_offset_(kuint64max), 44 last_updated_buffer_offset_(kuint64max),
43 block_size_(0) {} 45 block_size_(0) {}
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // verification. 224 // verification.
223 std::vector<char> current_kernel_hash_; 225 std::vector<char> current_kernel_hash_;
224 std::vector<char> current_rootfs_hash_; 226 std::vector<char> current_rootfs_hash_;
225 227
226 DISALLOW_COPY_AND_ASSIGN(DeltaPerformer); 228 DISALLOW_COPY_AND_ASSIGN(DeltaPerformer);
227 }; 229 };
228 230
229 } // namespace chromeos_update_engine 231 } // namespace chromeos_update_engine
230 232
231 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ 233 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__
OLDNEW
« no previous file with comments | « action_processor.h ('k') | delta_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698