biccommands: use SecureBuffer for IPMB call
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I1e8920ffbab0a1d7efba0743d6029fac76aa1231
diff --git a/src/biccommands.cpp b/src/biccommands.cpp
index 6932b6f..b5a6355 100644
--- a/src/biccommands.cpp
+++ b/src/biccommands.cpp
@@ -47,7 +47,7 @@
uint8_t, ipmi::message::Payload>
ipmiOemBicHandler(ipmi::Context::ptr ctx, std::array<uint8_t, 3> iana,
uint8_t interface, uint2_t lun, uint6_t netFnReq,
- uint8_t cmdReq, std::vector<uint8_t> data)
+ uint8_t cmdReq, SecureBuffer data)
{
ipmi::message::Response::ptr res;
@@ -57,8 +57,7 @@
ctx->cmd = cmdReq;
// creating ipmi message request for calling executeIpmiCommand function
- auto req = std::make_shared<ipmi::message::Request>(
- ctx, std::forward<std::vector<uint8_t>>(data));
+ auto req = std::make_shared<ipmi::message::Request>(ctx, std::move(data));
// Calling executeIpmiCommand request function
res = ipmi::executeIpmiCommand(req);