From 282e79b49e6b36dac304b72ed0e9d065fb5b818c Mon Sep 17 00:00:00 2001 From: Richard Marian Thomaiyar Date: Tue, 13 Nov 2018 19:00:58 +0530 Subject: Add test & user enabled state in set user password Support for test password and user enabled state in Set user password command Unit Test: 1. Performed user enabled & disabled and verified the state change 2. Performed test user password - both pass & fail condition Change-Id: I0eb91ad849e43072b1d9e90d777304fabdfb40bc Signed-off-by: Richard Marian Thomaiyar --- user_channel/usercommands.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'user_channel/usercommands.hpp') diff --git a/user_channel/usercommands.hpp b/user_channel/usercommands.hpp index ee33b5a..afbe67a 100644 --- a/user_channel/usercommands.hpp +++ b/user_channel/usercommands.hpp @@ -29,6 +29,12 @@ enum ipmi_netfn_user_cmds IPMI_CMD_SET_USER_PASSWORD = 0x47, }; +enum class IPMISetPasswordReturnCodes +{ + ipmiCCPasswdFailMismatch = 0x80, + ipmiCCPasswdFailWrongSize = 0x81, +}; + static constexpr uint8_t userIdEnabledViaSetPassword = 0x1; static constexpr uint8_t userIdDisabledViaSetPassword = 0x2; -- cgit v1.2.1