summaryrefslogtreecommitdiffstats
path: root/session.hpp
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2019-02-12 10:10:12 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2019-02-12 23:37:27 +0530
commit4021b1f7a1db46b6e467539371321513864534d4 (patch)
tree0f3b5a7ff75a36663ac039aa462abe15fed83c55 /session.hpp
parentb882dbb2b01be1e00a48e5292107dbdee110ab24 (diff)
downloadphosphor-net-ipmid-4021b1f7a1db46b6e467539371321513864534d4.tar.gz
phosphor-net-ipmid-4021b1f7a1db46b6e467539371321513864534d4.zip
Return the maximum privilege in open session command
This commit does the following: - Set the maximum privilege role in the session instead of current privilege in the implementation of the open session request/response. - In open session response, return the maximum privilege of the session instead of the current privilege level. - Update RAKP12 and RAKP34 implementation Tested: Checked the session setup works fine with ipmitool and freeipmi utility ipmipower. Change-Id: I41b63b91f08c2ed96856c4db41eedaa878c663e3 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'session.hpp')
-rw-r--r--session.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.hpp b/session.hpp
index bf136e3..bc48971 100644
--- a/session.hpp
+++ b/session.hpp
@@ -116,7 +116,7 @@ class Session
* @param[in] priv - Privilege Level requested in the Command
*/
Session(SessionID inRemoteConsoleSessID, Privilege priv) :
- curPrivLevel(priv), bmcSessionID(crypto::prng::rand()),
+ reqMaxPrivLevel(priv), bmcSessionID(crypto::prng::rand()),
remoteConsoleSessionID(inRemoteConsoleSessID)
{
}
@@ -270,7 +270,7 @@ class Session
/**
* @brief Session's Requested Maximum Privilege Level
*/
- uint8_t reqMaxPrivLevel;
+ Privilege reqMaxPrivLevel;
SequenceNumbers sequenceNums; // Session Sequence Numbers
State state = State::INACTIVE; // Session State
OpenPOWER on IntegriCloud