OEM-IBM: Add APIs for fileAckWithMetaData and
newFileAvailableWithMetaData for VMI.
Tested with latest SDK environment.
Change-Id: Ib796fb5c35438b340c28e2db7c118cdc76a13619
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/oem/ibm/libpldmresponder/file_io_type_cert.hpp b/oem/ibm/libpldmresponder/file_io_type_cert.hpp
index ee34575..4e4ad6b 100644
--- a/oem/ibm/libpldmresponder/file_io_type_cert.hpp
+++ b/oem/ibm/libpldmresponder/file_io_type_cert.hpp
@@ -8,7 +8,6 @@
{
namespace responder
{
-
using Fd = int;
using RemainingSize = uint64_t;
using CertDetails = std::tuple<Fd, RemainingSize>;
@@ -48,6 +47,18 @@
virtual int newFileAvailable(uint64_t length);
+ virtual int fileAckWithMetaData(uint8_t /*fileStatus*/,
+ uint32_t /*metaDataValue1*/,
+ uint32_t /*metaDataValue2*/,
+ uint32_t /*metaDataValue3*/,
+ uint32_t /*metaDataValue4*/);
+
+ virtual int newFileAvailableWithMetaData(uint64_t length,
+ uint32_t metaDataValue1,
+ uint32_t /*metaDataValue2*/,
+ uint32_t /*metaDataValue3*/,
+ uint32_t /*metaDataValue4*/);
+
/** @brief CertHandler destructor
*/
~CertHandler()
@@ -57,6 +68,10 @@
uint16_t certType; //!< type of the certificate
static CertMap certMap; //!< holds the fd and remaining read/write size for
//!< each certificate
+ enum SignedCertStatus
+ {
+ PLDM_INVALID_CERT_DATA = 0X03
+ };
};
} // namespace responder
} // namespace pldm