ipmi: start implementing flashDataVerify
Change-Id: I446ca8573db31eb53dc7aefbe25cdb9d23d51d29
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/flash-ipmi.hpp b/flash-ipmi.hpp
index baf4c7f..561d6c8 100644
--- a/flash-ipmi.hpp
+++ b/flash-ipmi.hpp
@@ -129,6 +129,13 @@
* Called to indicate the host is done sending the hash bytes.
*/
virtual bool hashFinish() = 0;
+
+ /**
+ * Kick off the flash image verification process.
+ *
+ * @return true if it was started succesfully.
+ */
+ virtual bool startDataVerification() = 0;
};
class FlashUpdate : public UpdateInterface
@@ -149,6 +156,8 @@
bool hashData(uint32_t offset, const std::vector<uint8_t>& bytes) override;
bool hashFinish() override;
+ bool startDataVerification() override;
+
private:
/**
* Tries to close out and delete anything staged.