summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2019-02-09 23:13:48 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2019-02-12 23:37:22 +0530
commitb882dbb2b01be1e00a48e5292107dbdee110ab24 (patch)
tree5cab7a3e4062bce19dfbd98a9fe37a90bf460b5c
parent615e4fd3c33484956ad335d477d09d76c2c8dcf4 (diff)
downloadphosphor-net-ipmid-b882dbb2b01be1e00a48e5292107dbdee110ab24.tar.gz
phosphor-net-ipmid-b882dbb2b01be1e00a48e5292107dbdee110ab24.zip
Update the payload with authenticated field in the header
Change-Id: I2159e6c9b59b13962b387043572d25e07ddad9cb Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
-rw-r--r--message_parsers.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/message_parsers.cpp b/message_parsers.cpp
index b820440..21fb125 100644
--- a/message_parsers.cpp
+++ b/message_parsers.cpp
@@ -234,6 +234,8 @@ std::vector<uint8_t> flatten(std::shared_ptr<Message> outMessage,
if (outMessage->isPacketAuthenticated)
{
+ header = reinterpret_cast<SessionHeader_t*>(packet.data());
+ header->payloadType |= PAYLOAD_AUTH_MASK;
internal::addIntegrityData(packet, outMessage, payloadLen);
}
OpenPOWER on IntegriCloud