Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 1 | #include "firmware_handler.hpp" |
| 2 | |
Patrick Venture | a78e39f | 2018-11-06 18:37:06 -0800 | [diff] [blame] | 3 | #include "image_handler.hpp" |
| 4 | |
Patrick Venture | 137ad2c | 2018-11-06 11:30:43 -0800 | [diff] [blame] | 5 | #include <algorithm> |
Patrick Venture | 192d60f | 2018-11-06 11:11:59 -0800 | [diff] [blame] | 6 | #include <cstdint> |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 7 | #include <cstring> |
Patrick Venture | 68cf64f | 2018-11-06 10:46:51 -0800 | [diff] [blame] | 8 | #include <memory> |
Patrick Venture | fa6c4d9 | 2018-11-02 18:34:53 -0700 | [diff] [blame] | 9 | #include <string> |
| 10 | #include <vector> |
| 11 | |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 12 | namespace blobs |
| 13 | { |
| 14 | |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 15 | const std::string FirmwareBlobHandler::hashBlobID = "/flash/hash"; |
Patrick Venture | 7b9256f | 2018-11-06 15:06:04 -0800 | [diff] [blame] | 16 | const std::string FirmwareBlobHandler::activeImageBlobID = |
| 17 | "/flash/active/image"; |
| 18 | const std::string FirmwareBlobHandler::activeHashBlobID = "/flash/active/hash"; |
Patrick Venture | 4cceb8e | 2018-11-06 11:56:48 -0800 | [diff] [blame] | 19 | |
Patrick Venture | 68cf64f | 2018-11-06 10:46:51 -0800 | [diff] [blame] | 20 | std::unique_ptr<GenericBlobInterface> |
Patrick Venture | 148cd65 | 2018-11-06 10:59:47 -0800 | [diff] [blame] | 21 | FirmwareBlobHandler::CreateFirmwareBlobHandler( |
Patrick Venture | 1cde5f9 | 2018-11-07 08:26:47 -0800 | [diff] [blame] | 22 | const std::vector<HandlerPack>& firmwares, |
| 23 | const std::vector<DataHandlerPack>& transports) |
Patrick Venture | 68cf64f | 2018-11-06 10:46:51 -0800 | [diff] [blame] | 24 | { |
Patrick Venture | 5285462 | 2018-11-06 12:30:00 -0800 | [diff] [blame] | 25 | /* There must be at least one. */ |
| 26 | if (!firmwares.size()) |
| 27 | { |
| 28 | return nullptr; |
| 29 | } |
Patrick Venture | 1cde5f9 | 2018-11-07 08:26:47 -0800 | [diff] [blame] | 30 | if (!transports.size()) |
| 31 | { |
| 32 | return nullptr; |
| 33 | } |
Patrick Venture | 5285462 | 2018-11-06 12:30:00 -0800 | [diff] [blame] | 34 | |
Patrick Venture | a78e39f | 2018-11-06 18:37:06 -0800 | [diff] [blame] | 35 | std::vector<std::string> blobs; |
| 36 | for (const auto& item : firmwares) |
| 37 | { |
| 38 | blobs.push_back(item.blobName); |
| 39 | } |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 40 | |
| 41 | if (0 == std::count(blobs.begin(), blobs.end(), hashBlobID)) |
| 42 | { |
| 43 | return nullptr; |
| 44 | } |
Patrick Venture | 4cceb8e | 2018-11-06 11:56:48 -0800 | [diff] [blame] | 45 | |
Patrick Venture | 1cde5f9 | 2018-11-07 08:26:47 -0800 | [diff] [blame] | 46 | std::uint16_t bitmask = 0; |
| 47 | for (const auto& item : transports) |
| 48 | { |
| 49 | /* TODO: can use std::accumulate() unless I'm mistaken. :D */ |
| 50 | bitmask |= item.bitmask; |
| 51 | } |
| 52 | |
| 53 | return std::make_unique<FirmwareBlobHandler>(firmwares, blobs, transports, |
| 54 | bitmask); |
Patrick Venture | 68cf64f | 2018-11-06 10:46:51 -0800 | [diff] [blame] | 55 | } |
| 56 | |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 57 | bool FirmwareBlobHandler::canHandleBlob(const std::string& path) |
| 58 | { |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 59 | /* Check if the path is in our supported list (or active list). */ |
Patrick Venture | 4cceb8e | 2018-11-06 11:56:48 -0800 | [diff] [blame] | 60 | if (std::count(blobIDs.begin(), blobIDs.end(), path)) |
Patrick Venture | 137ad2c | 2018-11-06 11:30:43 -0800 | [diff] [blame] | 61 | { |
| 62 | return true; |
| 63 | } |
| 64 | |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 65 | return false; |
| 66 | } |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 67 | |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 68 | std::vector<std::string> FirmwareBlobHandler::getBlobIds() |
| 69 | { |
Patrick Venture | fa6c4d9 | 2018-11-02 18:34:53 -0700 | [diff] [blame] | 70 | /* |
| 71 | * Grab the list of supported firmware. |
Patrick Venture | 137ad2c | 2018-11-06 11:30:43 -0800 | [diff] [blame] | 72 | * |
| 73 | * If there's an open firmware session, it'll already be present in the |
| 74 | * list as "/flash/active/image", and if the hash has started, |
| 75 | * "/flash/active/hash" regardless of mechanism. This is done in the open |
| 76 | * comamnd, no extra work is required here. |
Patrick Venture | fa6c4d9 | 2018-11-02 18:34:53 -0700 | [diff] [blame] | 77 | */ |
Patrick Venture | 4cceb8e | 2018-11-06 11:56:48 -0800 | [diff] [blame] | 78 | return blobIDs; |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 79 | } |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 80 | |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 81 | bool FirmwareBlobHandler::deleteBlob(const std::string& path) |
| 82 | { |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 83 | /* |
| 84 | * Per the design, this mean abort, and this will trigger whatever |
| 85 | * appropriate actions are required to abort the process. |
| 86 | */ |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 87 | return false; |
| 88 | } |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 89 | |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 90 | bool FirmwareBlobHandler::stat(const std::string& path, struct BlobMeta* meta) |
| 91 | { |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 92 | /* |
| 93 | * Stat on the files will return information such as what supported |
| 94 | * transport mechanisms are available. |
| 95 | * |
| 96 | * Stat on an active file or hash will return information such as the size |
| 97 | * of the data cached, and any additional pertinent information. The |
| 98 | * blob_state on the active files will return the state of the update. |
| 99 | */ |
Patrick Venture | 46637c8 | 2018-11-06 15:20:24 -0800 | [diff] [blame] | 100 | |
| 101 | /* We know we support this path because canHandle is called ahead */ |
| 102 | if (path == FirmwareBlobHandler::activeImageBlobID) |
| 103 | { |
| 104 | /* We need to return information for the image that's staged. */ |
| 105 | } |
| 106 | else if (path == FirmwareBlobHandler::activeHashBlobID) |
| 107 | { |
| 108 | /* We need to return information for the hash that's staged. */ |
| 109 | } |
| 110 | else |
| 111 | { |
| 112 | /* They are requesting information about the generic blob_id. */ |
Patrick Venture | 1cde5f9 | 2018-11-07 08:26:47 -0800 | [diff] [blame] | 113 | meta->blobState = bitmask; |
Patrick Venture | 46637c8 | 2018-11-06 15:20:24 -0800 | [diff] [blame] | 114 | meta->size = 0; |
| 115 | |
| 116 | /* The generic blob_ids state is only the bits related to the transport |
| 117 | * mechanisms. */ |
| 118 | return true; |
| 119 | } |
| 120 | |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 121 | return false; |
| 122 | } |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 123 | |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 124 | /* |
| 125 | * If you open /flash/image or /flash/tarball, or /flash/hash it will |
| 126 | * interpret the open flags and perform whatever actions are required for |
| 127 | * that update process. The session returned can be used immediately for |
| 128 | * sending data down, without requiring one to open the new active file. |
| 129 | * |
| 130 | * If you open the active flash image or active hash it will let you |
| 131 | * overwrite pieces, depending on the state. |
| 132 | * |
| 133 | * Once the verification process has started the active files cannot be |
| 134 | * opened. |
| 135 | * |
| 136 | * You can only have one open session at a time. Which means, you can only |
| 137 | * have one file open at a time. Trying to open the hash blob_id while you |
| 138 | * still have the flash image blob_id open will fail. Opening the flash |
| 139 | * blob_id when it is already open will fail. |
| 140 | */ |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 141 | bool FirmwareBlobHandler::open(uint16_t session, uint16_t flags, |
| 142 | const std::string& path) |
| 143 | { |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 144 | /* Check that they've opened for writing - read back not supported. */ |
| 145 | if ((flags & OpenFlags::write) == 0) |
| 146 | { |
| 147 | return false; |
| 148 | } |
| 149 | |
Patrick Venture | b1b68fc | 2018-11-09 09:37:04 -0800 | [diff] [blame] | 150 | /* Is the verification process underway? */ |
| 151 | if (state == UpdateState::verificationStarted) |
| 152 | { |
| 153 | return false; |
| 154 | } |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 155 | |
| 156 | /* Is there an open session already? We only allow one at a time. |
| 157 | * TODO: Temporarily using a simple boolean flag until there's a full |
| 158 | * session object to check. |
Patrick Venture | 7c8b97e | 2018-11-08 09:14:30 -0800 | [diff] [blame] | 159 | * |
| 160 | * Further on this, if there's an active session to the hash we don't allow |
| 161 | * re-opening the image, and if we have the image open, we don't allow |
| 162 | * opening the hash. This design decision may be re-evaluated, and changed |
| 163 | * to only allow one session per object type (of the two types). But, |
| 164 | * consider if the hash is open, do we want to allow writing to the image? |
| 165 | * And why would we? But, really, the point of no-return is once the |
| 166 | * verification process has begun -- which is done via commit() on the hash |
| 167 | * blob_id, we no longer want to allow updating the contents. |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 168 | */ |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 169 | if (fileOpen) |
| 170 | { |
| 171 | return false; |
| 172 | } |
| 173 | |
| 174 | /* There are two abstractions at play, how you get the data and how you |
| 175 | * handle that data. such that, whether the data comes from the PCI bridge |
| 176 | * or LPC bridge is not connected to whether the data goes into a static |
| 177 | * layout flash update or a UBI tarball. |
| 178 | */ |
| 179 | |
| 180 | /* Check the flags for the transport mechanism: if none match we don't |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 181 | * support what they request. |
| 182 | */ |
Patrick Venture | 1cde5f9 | 2018-11-07 08:26:47 -0800 | [diff] [blame] | 183 | if ((flags & bitmask) == 0) |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 184 | { |
| 185 | return false; |
| 186 | } |
| 187 | |
| 188 | /* 2) there isn't, so what are they opening? */ |
| 189 | if (path == activeImageBlobID) |
| 190 | { |
| 191 | /* 2a) are they opening the active image? this can only happen if they |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 192 | * already started one (due to canHandleBlob's behavior). |
| 193 | */ |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 194 | } |
| 195 | else if (path == activeHashBlobID) |
| 196 | { |
| 197 | /* 2b) are they opening the active hash? this can only happen if they |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 198 | * already started one (due to canHandleBlob's behavior). |
| 199 | */ |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 200 | } |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 201 | |
| 202 | /* How are they expecting to copy this data? */ |
| 203 | auto d = std::find_if( |
| 204 | transports.begin(), transports.end(), |
| 205 | [&flags](const auto& iter) { return (iter.bitmask & flags); }); |
| 206 | if (d == transports.end()) |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 207 | { |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 208 | return false; |
| 209 | } |
| 210 | |
| 211 | /* We found the transport handler they requested, no surprise since |
| 212 | * above we verify they selected at least one we wanted. |
| 213 | */ |
| 214 | Session* curr; |
| 215 | |
| 216 | if (path == hashBlobID) |
| 217 | { |
| 218 | curr = &activeHash; |
| 219 | |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 220 | /* 2c) are they opening the /flash/hash ? (to start the process) */ |
Patrick Venture | 7c8b97e | 2018-11-08 09:14:30 -0800 | [diff] [blame] | 221 | |
| 222 | /* Add active hash blob_id to canHandle list. */ |
| 223 | blobIDs.push_back(activeHashBlobID); |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 224 | } |
| 225 | else |
| 226 | { |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 227 | curr = &activeImage; |
Patrick Venture | 72388d7 | 2018-11-07 15:06:36 -0800 | [diff] [blame] | 228 | |
Patrick Venture | 7c8b97e | 2018-11-08 09:14:30 -0800 | [diff] [blame] | 229 | /* add active image blob_id to canHandle list. */ |
| 230 | blobIDs.push_back(activeImageBlobID); |
Patrick Venture | c02849b | 2018-11-06 17:31:15 -0800 | [diff] [blame] | 231 | } |
| 232 | |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 233 | /* 2d) are they opening the /flash/tarball ? (to start the UBI process) |
| 234 | */ |
| 235 | /* 2e) are they opening the /flash/image ? (to start the process) */ |
| 236 | /* 2...) are they opening the /flash/... ? (to start the process) */ |
| 237 | |
| 238 | auto h = std::find_if( |
| 239 | handlers.begin(), handlers.end(), |
| 240 | [&path](const auto& iter) { return (iter.blobName == path); }); |
| 241 | if (h == handlers.end()) |
| 242 | { |
| 243 | return false; |
| 244 | } |
| 245 | |
| 246 | /* Ok, so we found a handler that matched, so call open() */ |
| 247 | if (!h->handler->open(path)) |
| 248 | { |
| 249 | return false; |
| 250 | } |
| 251 | |
| 252 | curr->flags = flags; |
| 253 | curr->dataHandler = d->handler; |
| 254 | curr->imageHandler = h->handler; |
| 255 | |
| 256 | lookup[session] = curr; |
| 257 | |
| 258 | return true; |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 259 | } |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 260 | |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 261 | std::vector<uint8_t> FirmwareBlobHandler::read(uint16_t session, |
| 262 | uint32_t offset, |
| 263 | uint32_t requestedSize) |
| 264 | { |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 265 | /* |
| 266 | * Currently, the design does not provide this with a function, however, |
| 267 | * it will likely change to support reading data back. |
| 268 | */ |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 269 | return {}; |
| 270 | } |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 271 | |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 272 | /** |
| 273 | * The write command really just grabs the data from wherever it is and sends it |
| 274 | * to the image handler. It's the image handler's responsibility to deal with |
| 275 | * the data provided. |
| 276 | */ |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 277 | bool FirmwareBlobHandler::write(uint16_t session, uint32_t offset, |
| 278 | const std::vector<uint8_t>& data) |
| 279 | { |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 280 | auto item = lookup.find(session); |
| 281 | if (item == lookup.end()) |
| 282 | { |
| 283 | return false; |
| 284 | } |
| 285 | |
Patrick Venture | b1b68fc | 2018-11-09 09:37:04 -0800 | [diff] [blame] | 286 | /* Prevent writing during verification. */ |
| 287 | if (state == UpdateState::verificationStarted) |
| 288 | { |
| 289 | return false; |
| 290 | } |
| 291 | |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 292 | std::vector<std::uint8_t> bytes; |
| 293 | |
Patrick Venture | 05abf7e | 2018-11-09 11:02:56 -0800 | [diff] [blame^] | 294 | if (item->second->flags & UpdateFlags::ipmi) |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 295 | { |
| 296 | bytes = data; |
| 297 | } |
| 298 | else |
| 299 | { |
| 300 | /* little endian required per design, and so on, but TODO: do endianness |
| 301 | * with boost. |
| 302 | */ |
| 303 | struct ExtChunkHdr header; |
| 304 | |
| 305 | if (data.size() != sizeof(header)) |
| 306 | { |
| 307 | return false; |
| 308 | } |
| 309 | |
| 310 | std::memcpy(&header, data.data(), data.size()); |
| 311 | bytes = item->second->dataHandler->copyFrom(header.length); |
| 312 | } |
| 313 | |
| 314 | return item->second->imageHandler->write(offset, bytes); |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 315 | } |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 316 | |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 317 | /* |
| 318 | * If the active session (image or hash) is over LPC, this allows |
| 319 | * configuring it. This option is only available before you start |
| 320 | * writing data for the given item (image or hash). This will return |
| 321 | * false at any other part. -- the lpc handler portion will know to return |
| 322 | * false. |
| 323 | */ |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 324 | bool FirmwareBlobHandler::writeMeta(uint16_t session, uint32_t offset, |
| 325 | const std::vector<uint8_t>& data) |
| 326 | { |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 327 | auto item = lookup.find(session); |
| 328 | if (item == lookup.end()) |
| 329 | { |
| 330 | return false; |
| 331 | } |
| 332 | |
Patrick Venture | 05abf7e | 2018-11-09 11:02:56 -0800 | [diff] [blame^] | 333 | if (item->second->flags & UpdateFlags::ipmi) |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 334 | { |
| 335 | return false; |
| 336 | } |
| 337 | |
| 338 | return item->second->dataHandler->write(data); |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 339 | } |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 340 | |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 341 | bool FirmwareBlobHandler::commit(uint16_t session, |
| 342 | const std::vector<uint8_t>& data) |
| 343 | { |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 344 | /* |
| 345 | * If this command is called on the session for the hash image, it'll |
| 346 | * trigger a systemd service `verify_image.service` to attempt to verify |
| 347 | * the image. Before doing this, if the transport mechanism is not IPMI |
| 348 | * BT, it'll shut down the mechanism used for transport preventing the |
| 349 | * host from updating anything. |
| 350 | */ |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 351 | return false; |
| 352 | } |
| 353 | bool FirmwareBlobHandler::close(uint16_t session) |
| 354 | { |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 355 | /* |
| 356 | * Close must be called on the firmware image before triggering |
| 357 | * verification via commit. Once the verification is complete, you can |
| 358 | * then close the hash file. |
| 359 | * |
| 360 | * If the `verify_image.service` returned success, closing the hash file |
| 361 | * will have a specific behavior depending on the update. If it's UBI, |
| 362 | * it'll perform the install. If it's static layout, it'll do nothing. The |
| 363 | * verify_image service in the static layout case is responsible for placing |
| 364 | * the file in the correct staging position. |
| 365 | */ |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 366 | return false; |
| 367 | } |
| 368 | bool FirmwareBlobHandler::stat(uint16_t session, struct BlobMeta* meta) |
| 369 | { |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 370 | /* |
Patrick Venture | 46637c8 | 2018-11-06 15:20:24 -0800 | [diff] [blame] | 371 | * Return session specific information. |
Patrick Venture | 5397796 | 2018-11-02 18:59:35 -0700 | [diff] [blame] | 372 | */ |
Patrick Venture | c7ca291 | 2018-11-02 11:38:33 -0700 | [diff] [blame] | 373 | return false; |
| 374 | } |
| 375 | bool FirmwareBlobHandler::expire(uint16_t session) |
| 376 | { |
| 377 | return false; |
| 378 | } |
| 379 | } // namespace blobs |