bmc: add verify blob id only when ready
Originally, the verify blob id was always present. Now, it's only added
when the state transitions initially to verificationPending.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I706273519354a7a4a98d9fe4f600c6455a69cc3c
diff --git a/firmware_handler.hpp b/firmware_handler.hpp
index 3f2d21d..0b58876 100644
--- a/firmware_handler.hpp
+++ b/firmware_handler.hpp
@@ -188,6 +188,12 @@
}
}
+ void removeBlobId(const std::string& blob)
+ {
+ blobIDs.erase(std::remove(blobIDs.begin(), blobIDs.end(), blob),
+ blobIDs.end());
+ }
+
/** List of handlers by type. */
std::vector<HandlerPack> handlers;