1 #include "lanplus.h" 2 #include "ipmitool/ipmi_constants.h" 3 4 const struct valstr ipmi_rakp_return_codes[] = { 5 6 { IPMI_RAKP_STATUS_NO_ERRORS, "no errors" }, 7 { IPMI_RAKP_STATUS_INSUFFICIENT_RESOURCES_FOR_SESSION, "insufficient resources for session" }, 8 { IPMI_RAKP_STATUS_INVALID_SESSION_ID, "invalid session ID" }, 9 { IPMI_RAKP_STATUS_INVALID_PAYLOAD_TYPE, "invalid payload type" }, 10 { IPMI_RAKP_STATUS_INVALID_AUTHENTICATION_ALGORITHM, "invalid authentication algorithm" }, 11 { IPMI_RAKP_STATUS_INVALID_INTEGRITTY_ALGORITHM, "invalid integrity algorithm" }, 12 { IPMI_RAKP_STATUS_NO_MATCHING_AUTHENTICATION_PAYLOAD, "no matching authentication algorithm"}, 13 { IPMI_RAKP_STATUS_NO_MATCHING_INTEGRITY_PAYLOAD, "no matching integrity payload" }, 14 { IPMI_RAKP_STATUS_INACTIVE_SESSION_ID, "inactive session ID" }, 15 { IPMI_RAKP_STATUS_INVALID_ROLE, "invalid role" }, 16 { IPMI_RAKP_STATUS_UNAUTHORIZED_ROLE_REQUESTED, "unauthorized role requested" }, 17 { IPMI_RAKP_STATUS_INSUFFICIENT_RESOURCES_FOR_ROLE, "insufficient resources for role" }, 18 { IPMI_RAKP_STATUS_INVALID_NAME_LENGTH, "invalid name length" }, 19 { IPMI_RAKP_STATUS_UNAUTHORIZED_NAME, "unauthorized name" }, 20 { IPMI_RAKP_STATUS_UNAUTHORIZED_GUID, "unauthorized GUID" }, 21 { IPMI_RAKP_STATUS_INVALID_INTEGRITY_CHECK_VALUE, "invalid integrity check value" }, 22 { IPMI_RAKP_STATUS_INVALID_CONFIDENTIALITY_ALGORITHM, "invalid confidentiality algorithm" }, 23 { IPMI_RAKP_STATUS_NO_CIPHER_SUITE_MATCH, "no matching cipher suite" }, 24 { IPMI_RAKP_STATUS_ILLEGAL_PARAMTER, "illegal parameter" }, 25 { 0, 0 }, 26 }; 27 28 29 const struct valstr ipmi_priv_levels[] = { 30 { IPMI_PRIV_CALLBACK, "callback" }, 31 { IPMI_PRIV_USER, "user" }, 32 { IPMI_PRIV_OPERATOR, "operator" }, 33 { IPMI_PRIV_ADMIN, "admin" }, 34 { IPMI_PRIV_OEM, "oem" }, 35 { 0, 0 }, 36 }; 37 38 39 40