blob: 2f008237e9b6ed38900e7a98eaec5b17eb2678de [file] [log] [blame]
#pragma once
#include <vector>
#include "message_handler.hpp"
#include "comm_module.hpp"
namespace command
{
/**
* @struct RAKP3request
*
* IPMI Payload for RAKP Message 3
*/
struct RAKP3request
{
uint8_t messageTag;
uint8_t rmcpStatusCode;
uint16_t reserved;
uint32_t managedSystemSessionID;
} __attribute__((packed));
/**
* @struct RAKP4response
*
* IPMI Payload for RAKP Message 4
*/
struct RAKP4response
{
uint8_t messageTag;
uint8_t rmcpStatusCode;
uint16_t reserved;
uint32_t remoteConsoleSessionID;
} __attribute__((packed));
/**
* @brief RAKP Message 3, RAKP Message 4
*
* The session activation process is completed by the remote console and BMC
* exchanging messages that are signed according to the Authentication Algorithm
* that was negotiated, and the parameters that were passed in the earlier
* messages. RAKP Message 3 is the signed message from the remote console to the
* BMC. After receiving RAKP Message 3, the BMC returns RAKP Message 4 - a
* signed message from BMC to the remote console.
*
* @param[in] inPayload - Request Data for the command
* @param[in] handler - Reference to the Message Handler
*
* @return Response data for the command
*/
std::vector<uint8_t> RAKP34(const std::vector<uint8_t>& inPayload,
const message::Handler& handler);
} // namespace command