firmware_handler: handle the state transitions
There is a new state in the firmware handler. Implement handling this
state which is between receiving data and verification running.
Implement the case properly where the verification blob is closed
properly after verification has completed.
Tested: Not yet tested.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ib63ce1be1e435740739c02703b335897e26a512c
diff --git a/firmware_handler.hpp b/firmware_handler.hpp
index 1af3d04..314516f 100644
--- a/firmware_handler.hpp
+++ b/firmware_handler.hpp
@@ -100,14 +100,14 @@
{
/** The initial state. */
notYetStarted = 0,
- /**
- * The upload process has started, but verification has not started.
- */
- uploadInProgress = 1,
+ /** The BMC is expecting to receive bytes. */
+ uploadInProgress,
+ /** The BMC is ready for verification or more bytes. */
+ verificationPending,
/** The verification process has started, no more writes allowed. */
- verificationStarted = 2,
+ verificationStarted,
/** The verification process has completed. */
- verificationCompleted = 3,
+ verificationCompleted,
};
/** The return values for verification. */