firmware: add expiration handle
Expiring the session aborts the process.
Tested: Only tested with unit-tests, not run on a real system.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I3a7ae54cfa04e162a2a1e591c0ddd4eca3d6d3db
diff --git a/bmc/firmware_handler.cpp b/bmc/firmware_handler.cpp
index 917dbc4..ffe40b1 100644
--- a/bmc/firmware_handler.cpp
+++ b/bmc/firmware_handler.cpp
@@ -755,7 +755,8 @@
bool FirmwareBlobHandler::expire(uint16_t session)
{
- return false;
+ abortProcess();
+ return true;
}
/*