summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-03-07 12:48:32 -0800
committerPatrick Venture <venture@google.com>2019-03-08 13:10:01 -0800
commitde8a16e2e85f49e142461b7e6fe901d3f8740fdf (patch)
tree065055f299e232874190c8e921d7960b9f434cd4 /main.cpp
parentb15d654ed1f6804fb2e82a5cfe97eaf35b83529e (diff)
downloadphosphor-ipmi-blobs-de8a16e2e85f49e142461b7e6fe901d3f8740fdf.tar.gz
phosphor-ipmi-blobs-de8a16e2e85f49e142461b7e6fe901d3f8740fdf.zip
use ipmiblob library from ipmi-blob-tool
Drop all code that is now handled by the ipmiblob library provided by the new ipmi-blob-tool. This is a library that can be included on the BMC if necessary, but relies on nothing that is strictly meant for the BMC. Change-Id: I2b02ae0d432e84c08e598d27eef85b57c06a70fc Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index 6115302..bd071ae 100644
--- a/main.cpp
+++ b/main.cpp
@@ -48,17 +48,16 @@ static ipmi_ret_t handleBlobCommand(ipmi_cmd_t cmd, const uint8_t* reqBuf,
/* on failure rc is set to the corresponding IPMI error. */
ipmi_ret_t rc = IPMI_CC_OK;
- Crc16 crc;
IpmiBlobHandler command =
- validateBlobCommand(&crc, reqBuf, replyCmdBuf, dataLen, &rc);
+ validateBlobCommand(reqBuf, replyCmdBuf, dataLen, &rc);
if (command == nullptr)
{
(*dataLen) = 0;
return rc;
}
- return processBlobCommand(command, getBlobManager(), &crc, reqBuf,
- replyCmdBuf, dataLen);
+ return processBlobCommand(command, getBlobManager(), reqBuf, replyCmdBuf,
+ dataLen);
}
void setupBlobGlobalHandler() __attribute__((constructor));
OpenPOWER on IntegriCloud