pldm: Remove boost related code in pldm daemon
Use the crc32 method in libpldm/utils.h instead of boost::crc_32_type
and remove boost related code.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I114eb83a73c5c47bdd44d5ad53f3ff6101235558
diff --git a/oem/ibm/libpldmresponder/file_table.cpp b/oem/ibm/libpldmresponder/file_table.cpp
index 4b3198c..45a49fe 100644
--- a/oem/ibm/libpldmresponder/file_table.cpp
+++ b/oem/ibm/libpldmresponder/file_table.cpp
@@ -1,9 +1,10 @@
#include "file_table.hpp"
-#include <boost/crc.hpp>
#include <fstream>
#include <iostream>
+#include "libpldm/utils.h"
+
namespace pldm
{
@@ -99,9 +100,7 @@
}
// Calculate the checksum
- boost::crc_32_type result;
- result.process_bytes(fileTable.data(), fileTable.size());
- checkSum = result.checksum();
+ checkSum = crc32(fileTable.data(), fileTable.size());
}
Table FileTable::operator()() const