summaryrefslogtreecommitdiffstats
path: root/comm_module.hpp
blob: c67b413bf0dd61acc1931635feae45fc53688974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once

#include "message_handler.hpp"

#include <cstdint>

namespace command
{

/**
 * @brief RMCP+ and RAKP Message Status Codes
 */
enum class RAKP_ReturnCode : uint8_t
{
    NO_ERROR,                    //!< No errors
    INSUFFICIENT_RESOURCE,       //!< Insufficient resources to create a session
    INVALID_SESSION_ID,          //!< Invalid Session ID
    INVALID_PAYLOAD_TYPE,        //!< Invalid payload type
    INVALID_AUTH_ALGO,           //!< Invalid authentication algorithm
    INVALID_INTEGRITY_ALGO,      //!< Invalid integrity algorithm
    NO_MATCH_AUTH_PAYLOAD,       //!< No matching authentication payload
    NO_MATCH_INTEGRITY_PAYLOAD,  //!< No matching integrity payload
    INACTIVE_SESSIONID,          //!< Inactive Session ID
    INACTIVE_ROLE,               //!< Invalid role
    UNAUTH_ROLE_PRIV,            //!< Unauthorized role or privilege requested
    INSUFFICIENT_RESOURCES_ROLE, //!< Insufficient resources to create a session
    INVALID_NAME_LENGTH,         //!< Invalid name length
    UNAUTH_NAME,                 //!< Unauthorized name
    UNAUTH_GUID,                 //!< Unauthorized GUID
    INVALID_INTEGRITY_VALUE,     //!< Invalid integrity check value
    INVALID_CONF_ALGO,           //!< Invalid confidentiality algorithm
    NO_CIPHER_SUITE_MATCH,       //!< No Cipher Suite match with security algos
    ILLEGAL_PARAMETER,           //!< Illegal or unrecognized parameter
};

/**
 * @brief Register Session Setup commands to the Command Table
 */
void sessionSetupCommands();

} // namespace command
OpenPOWER on IntegriCloud