Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ |
| 6 | #define CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ |
| 7 | |
| 8 | #include <inttypes.h> |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 9 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 10 | #include <vector> |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 11 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 12 | #include <google/protobuf/repeated_field.h> |
Andrew de los Reyes | 353777c | 2010-10-08 10:34:30 -0700 | [diff] [blame] | 13 | #include <gtest/gtest_prod.h> // for FRIEND_TEST |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 14 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 15 | #include "update_engine/file_writer.h" |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 16 | #include "update_engine/install_plan.h" |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 17 | #include "update_engine/omaha_hash_calculator.h" |
Jay Srinivasan | f057205 | 2012-10-23 18:12:56 -0700 | [diff] [blame^] | 18 | #include "update_engine/system_state.h" |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 19 | #include "update_engine/update_metadata.pb.h" |
| 20 | |
| 21 | namespace chromeos_update_engine { |
| 22 | |
Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 23 | class PrefsInterface; |
| 24 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 25 | // This class performs the actions in a delta update synchronously. The delta |
| 26 | // update itself should be passed in in chunks as it is received. |
| 27 | |
| 28 | class DeltaPerformer : public FileWriter { |
| 29 | public: |
Darin Petkov | 9574f7e | 2011-01-13 10:48:12 -0800 | [diff] [blame] | 30 | enum MetadataParseResult { |
| 31 | kMetadataParseSuccess, |
| 32 | kMetadataParseError, |
| 33 | kMetadataParseInsufficientData, |
| 34 | }; |
| 35 | |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 36 | static const uint64_t kDeltaVersionSize; |
| 37 | static const uint64_t kDeltaManifestSizeSize; |
Darin Petkov | abc7bc0 | 2011-02-23 14:39:43 -0800 | [diff] [blame] | 38 | static const char kUpdatePayloadPublicKeyPath[]; |
| 39 | |
Jay Srinivasan | f057205 | 2012-10-23 18:12:56 -0700 | [diff] [blame^] | 40 | DeltaPerformer(PrefsInterface* prefs, |
| 41 | SystemState* system_state, |
| 42 | InstallPlan* install_plan) |
Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 43 | : prefs_(prefs), |
Jay Srinivasan | f057205 | 2012-10-23 18:12:56 -0700 | [diff] [blame^] | 44 | system_state_(system_state), |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 45 | install_plan_(install_plan), |
Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 46 | fd_(-1), |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 47 | kernel_fd_(-1), |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 48 | manifest_valid_(false), |
Darin Petkov | 437adc4 | 2010-10-07 13:12:24 -0700 | [diff] [blame] | 49 | manifest_metadata_size_(0), |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 50 | next_operation_num_(0), |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 51 | buffer_offset_(0), |
Darin Petkov | 0406e40 | 2010-10-06 21:33:11 -0700 | [diff] [blame] | 52 | last_updated_buffer_offset_(kuint64max), |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 53 | block_size_(0), |
| 54 | public_key_path_(kUpdatePayloadPublicKeyPath) {} |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 55 | |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 56 | // Opens the kernel. Should be called before or after Open(), but before |
| 57 | // Write(). The kernel file will be close()d when Close() is called. |
| 58 | bool OpenKernel(const char* kernel_path); |
| 59 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 60 | // flags and mode ignored. Once Close()d, a DeltaPerformer can't be |
| 61 | // Open()ed again. |
| 62 | int Open(const char* path, int flags, mode_t mode); |
| 63 | |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 64 | // FileWriter's Write implementation where caller doesn't care about |
| 65 | // error codes. |
| 66 | bool Write(const void* bytes, size_t count) { |
| 67 | ActionExitCode error; |
| 68 | return Write(bytes, count, &error); |
| 69 | } |
| 70 | |
| 71 | // FileWriter's Write implementation that returns a more specific |error| code |
| 72 | // in case of failures in Write operation. |
| 73 | bool Write(const void* bytes, size_t count, ActionExitCode *error); |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 74 | |
| 75 | // Wrapper around close. Returns 0 on success or -errno on error. |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 76 | // Closes both 'path' given to Open() and the kernel path. |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 77 | int Close(); |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 78 | |
| 79 | // Verifies the downloaded payload against the signed hash included in the |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 80 | // payload, against the update check hash (which is in base64 format) and |
| 81 | // size using the public key and returns kActionCodeSuccess on success, an |
| 82 | // error code on failure. This method should be called after closing the |
| 83 | // stream. Note this method skips the signed hash check if the public key is |
| 84 | // unavailable; it returns kActionCodeSignedDeltaPayloadExpectedError if the |
| 85 | // public key is available but the delta payload doesn't include a signature. |
| 86 | ActionExitCode VerifyPayload(const std::string& update_check_response_hash, |
Andrew de los Reyes | 771e1bd | 2011-08-30 14:47:23 -0700 | [diff] [blame] | 87 | const uint64_t update_check_response_size); |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 88 | |
Darin Petkov | 3aefa86 | 2010-12-07 14:45:00 -0800 | [diff] [blame] | 89 | // Reads from the update manifest the expected sizes and hashes of the target |
| 90 | // kernel and rootfs partitions. These values can be used for applied update |
| 91 | // hash verification. This method must be called after the update manifest has |
| 92 | // been parsed (e.g., after closing the stream). Returns true on success, and |
| 93 | // false on failure (e.g., when the values are not present in the update |
| 94 | // manifest). |
| 95 | bool GetNewPartitionInfo(uint64_t* kernel_size, |
| 96 | std::vector<char>* kernel_hash, |
| 97 | uint64_t* rootfs_size, |
| 98 | std::vector<char>* rootfs_hash); |
Darin Petkov | 2dd0109 | 2010-10-08 15:43:05 -0700 | [diff] [blame] | 99 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 100 | // Converts an ordered collection of Extent objects which contain data of |
| 101 | // length full_length to a comma-separated string. For each Extent, the |
| 102 | // string will have the start offset and then the length in bytes. |
| 103 | // The length value of the last extent in the string may be short, since |
| 104 | // the full length of all extents in the string is capped to full_length. |
| 105 | // Also, an extent starting at kSparseHole, appears as -1 in the string. |
| 106 | // For example, if the Extents are {1, 1}, {4, 2}, {kSparseHole, 1}, |
| 107 | // {0, 1}, block_size is 4096, and full_length is 5 * block_size - 13, |
| 108 | // the resulting string will be: "4096:4096,16384:8192,-1:4096,0:4083" |
| 109 | static bool ExtentsToBsdiffPositionsString( |
| 110 | const google::protobuf::RepeatedPtrField<Extent>& extents, |
| 111 | uint64_t block_size, |
| 112 | uint64_t full_length, |
| 113 | std::string* positions_string); |
| 114 | |
Darin Petkov | 0406e40 | 2010-10-06 21:33:11 -0700 | [diff] [blame] | 115 | // Returns true if a previous update attempt can be continued based on the |
| 116 | // persistent preferences and the new update check response hash. |
| 117 | static bool CanResumeUpdate(PrefsInterface* prefs, |
| 118 | std::string update_check_response_hash); |
| 119 | |
| 120 | // Resets the persistent update progress state to indicate that an update |
Darin Petkov | 9b23057 | 2010-10-08 10:20:09 -0700 | [diff] [blame] | 121 | // can't be resumed. Performs a quick update-in-progress reset if |quick| is |
| 122 | // true, otherwise resets all progress-related update state. Returns true on |
| 123 | // success, false otherwise. |
| 124 | static bool ResetUpdateProgress(PrefsInterface* prefs, bool quick); |
Darin Petkov | 0406e40 | 2010-10-06 21:33:11 -0700 | [diff] [blame] | 125 | |
Darin Petkov | 9574f7e | 2011-01-13 10:48:12 -0800 | [diff] [blame] | 126 | // Attempts to parse the update metadata starting from the beginning of |
| 127 | // |payload| into |manifest|. On success, sets |metadata_size| to the total |
| 128 | // metadata bytes (including the delta magic and metadata size fields), and |
| 129 | // returns kMetadataParseSuccess. Returns kMetadataParseInsufficientData if |
| 130 | // more data is needed to parse the complete metadata. Returns |
| 131 | // kMetadataParseError if the metadata can't be parsed given the payload. |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 132 | MetadataParseResult ParsePayloadMetadata( |
Darin Petkov | 9574f7e | 2011-01-13 10:48:12 -0800 | [diff] [blame] | 133 | const std::vector<char>& payload, |
| 134 | DeltaArchiveManifest* manifest, |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 135 | uint64_t* metadata_size, |
| 136 | ActionExitCode* error); |
Darin Petkov | 9574f7e | 2011-01-13 10:48:12 -0800 | [diff] [blame] | 137 | |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 138 | void set_public_key_path(const std::string& public_key_path) { |
| 139 | public_key_path_ = public_key_path; |
Darin Petkov | 698d041 | 2010-10-13 10:59:44 -0700 | [diff] [blame] | 140 | } |
| 141 | |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 142 | // Returns the byte offset at which the manifest protobuf begins in a |
| 143 | // payload. |
| 144 | static uint64_t GetManifestOffset(); |
| 145 | |
| 146 | // Returns the byte offset where the size of the manifest is stored in |
| 147 | // a payload. This offset precedes the actual start of the manifest |
| 148 | // that's returned by the GetManifestOffset method. |
| 149 | static uint64_t GetManifestSizeOffset(); |
| 150 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 151 | private: |
Andrew de los Reyes | 353777c | 2010-10-08 10:34:30 -0700 | [diff] [blame] | 152 | friend class DeltaPerformerTest; |
| 153 | FRIEND_TEST(DeltaPerformerTest, IsIdempotentOperationTest); |
| 154 | |
| 155 | static bool IsIdempotentOperation( |
| 156 | const DeltaArchiveManifest_InstallOperation& op); |
| 157 | |
Darin Petkov | 698d041 | 2010-10-13 10:59:44 -0700 | [diff] [blame] | 158 | // Verifies that the expected source partition hashes (if present) match the |
| 159 | // hashes for the current partitions. Returns true if there're no expected |
| 160 | // hashes in the payload (e.g., if it's a new-style full update) or if the |
| 161 | // hashes match; returns false otherwise. |
| 162 | bool VerifySourcePartitions(); |
| 163 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 164 | // Returns true if enough of the delta file has been passed via Write() |
| 165 | // to be able to perform a given install operation. |
| 166 | bool CanPerformInstallOperation( |
| 167 | const DeltaArchiveManifest_InstallOperation& operation); |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 168 | |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 169 | // Validates that the hash of the blobs corresponding to the given |operation| |
| 170 | // matches what's specified in the manifest in the payload. |
| 171 | // Returns kActionCodeSuccess on match or a suitable error code otherwise. |
| 172 | ActionExitCode ValidateOperationHash( |
Jay Srinivasan | 00f76b6 | 2012-09-17 18:48:36 -0700 | [diff] [blame] | 173 | const DeltaArchiveManifest_InstallOperation& operation, bool should_log); |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 174 | |
| 175 | // Interprets the given |protobuf| as a DeltaArchiveManifest protocol buffer |
| 176 | // of the given protobuf_length and verifies that the signed hash of the |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 177 | // metadata matches what's specified in the install plan from Omaha. |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 178 | // Returns kActionCodeSuccess on match or a suitable error code otherwise. |
| 179 | // This method must be called before any part of the |protobuf| is parsed |
| 180 | // so that a man-in-the-middle attack on the SSL connection to the payload |
| 181 | // server doesn't exploit any vulnerability in the code that parses the |
| 182 | // protocol buffer. |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 183 | ActionExitCode ValidateMetadataSignature(const char* protobuf, |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 184 | uint64_t protobuf_length); |
| 185 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 186 | // Returns true on success. |
| 187 | bool PerformInstallOperation( |
| 188 | const DeltaArchiveManifest_InstallOperation& operation); |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 189 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 190 | // These perform a specific type of operation and return true on success. |
| 191 | bool PerformReplaceOperation( |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 192 | const DeltaArchiveManifest_InstallOperation& operation, |
| 193 | bool is_kernel_partition); |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 194 | bool PerformMoveOperation( |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 195 | const DeltaArchiveManifest_InstallOperation& operation, |
| 196 | bool is_kernel_partition); |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 197 | bool PerformBsdiffOperation( |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 198 | const DeltaArchiveManifest_InstallOperation& operation, |
| 199 | bool is_kernel_partition); |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 200 | |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 201 | // Returns true if the payload signature message has been extracted from |
| 202 | // |operation|, false otherwise. |
| 203 | bool ExtractSignatureMessage( |
| 204 | const DeltaArchiveManifest_InstallOperation& operation); |
| 205 | |
Darin Petkov | 437adc4 | 2010-10-07 13:12:24 -0700 | [diff] [blame] | 206 | // Updates the hash calculator with |count| bytes at the head of |buffer_| and |
| 207 | // then discards them. |
| 208 | void DiscardBufferHeadBytes(size_t count); |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 209 | |
Darin Petkov | 0406e40 | 2010-10-06 21:33:11 -0700 | [diff] [blame] | 210 | // Checkpoints the update progress into persistent storage to allow this |
| 211 | // update attempt to be resumed after reboot. |
Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 212 | bool CheckpointUpdateProgress(); |
| 213 | |
Darin Petkov | 9b23057 | 2010-10-08 10:20:09 -0700 | [diff] [blame] | 214 | // Primes the required update state. Returns true if the update state was |
| 215 | // successfully initialized to a saved resume state or if the update is a new |
| 216 | // update. Returns false otherwise. |
| 217 | bool PrimeUpdateState(); |
| 218 | |
Jay Srinivasan | f057205 | 2012-10-23 18:12:56 -0700 | [diff] [blame^] | 219 | // Sends UMA statistics for the given error code. |
| 220 | void SendUMAStat(ActionExitCode code); |
| 221 | |
Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 222 | // Update Engine preference store. |
| 223 | PrefsInterface* prefs_; |
| 224 | |
Jay Srinivasan | f057205 | 2012-10-23 18:12:56 -0700 | [diff] [blame^] | 225 | // Global context of the system. |
| 226 | SystemState* system_state_; |
| 227 | |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 228 | // Install Plan based on Omaha Response. |
| 229 | InstallPlan* install_plan_; |
| 230 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 231 | // File descriptor of open device. |
| 232 | int fd_; |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 233 | |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 234 | // File descriptor of the kernel device |
| 235 | int kernel_fd_; |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 236 | |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 237 | std::string path_; // Path that fd_ refers to. |
| 238 | std::string kernel_path_; // Path that kernel_fd_ refers to. |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 239 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 240 | DeltaArchiveManifest manifest_; |
| 241 | bool manifest_valid_; |
Darin Petkov | 437adc4 | 2010-10-07 13:12:24 -0700 | [diff] [blame] | 242 | uint64_t manifest_metadata_size_; |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 243 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 244 | // Index of the next operation to perform in the manifest. |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 245 | int next_operation_num_; |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 246 | |
| 247 | // buffer_ is a window of the data that's been downloaded. At first, |
| 248 | // it contains the beginning of the download, but after the protobuf |
| 249 | // has been downloaded and parsed, it contains a sliding window of |
| 250 | // data blobs. |
| 251 | std::vector<char> buffer_; |
| 252 | // Offset of buffer_ in the binary blobs section of the update. |
| 253 | uint64_t buffer_offset_; |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 254 | |
Darin Petkov | 0406e40 | 2010-10-06 21:33:11 -0700 | [diff] [blame] | 255 | // Last |buffer_offset_| value updated as part of the progress update. |
| 256 | uint64_t last_updated_buffer_offset_; |
| 257 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 258 | // The block size (parsed from the manifest). |
| 259 | uint32_t block_size_; |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 260 | |
Darin Petkov | 437adc4 | 2010-10-07 13:12:24 -0700 | [diff] [blame] | 261 | // Calculates the payload hash. |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 262 | OmahaHashCalculator hash_calculator_; |
| 263 | |
Darin Petkov | 437adc4 | 2010-10-07 13:12:24 -0700 | [diff] [blame] | 264 | // Saves the signed hash context. |
| 265 | std::string signed_hash_context_; |
| 266 | |
Darin Petkov | d7061ab | 2010-10-06 14:37:09 -0700 | [diff] [blame] | 267 | // Signatures message blob extracted directly from the payload. |
| 268 | std::vector<char> signatures_message_data_; |
| 269 | |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 270 | // The public key to be used. Provided as a member so that tests can |
| 271 | // override with test keys. |
| 272 | std::string public_key_path_; |
Darin Petkov | 698d041 | 2010-10-13 10:59:44 -0700 | [diff] [blame] | 273 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 274 | DISALLOW_COPY_AND_ASSIGN(DeltaPerformer); |
| 275 | }; |
| 276 | |
| 277 | } // namespace chromeos_update_engine |
| 278 | |
| 279 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ |