Lines Matching full:session
19 auto session = session::Manager::get().getSession(bmcSessionID); in applyIntegrityAlgo() local
21 auto authAlgo = session->getAuthAlgo(); in applyIntegrityAlgo()
27 session->setIntegrityAlgo( in applyIntegrityAlgo()
34 session->setIntegrityAlgo( in applyIntegrityAlgo()
46 auto session = session::Manager::get().getSession(bmcSessionID); in applyCryptAlgo() local
48 auto authAlgo = session->getAuthAlgo(); in applyCryptAlgo()
54 auto intAlgo = session->getIntegrityAlgo(); in applyCryptAlgo()
57 session->setCryptAlgo( in applyCryptAlgo()
82 // Session ID zero is reserved for Session Setup in RAKP34()
84 session::sessionZero) in RAKP34()
86 lg2::info("RAKP34: BMC invalid Session ID"); in RAKP34()
92 std::shared_ptr<session::Session> session; in RAKP34() local
95 session = in RAKP34()
96 session::Manager::get().getSession(request->managedSystemSessionID); in RAKP34()
100 lg2::error("RAKP12 : session not found: {ERROR}", "ERROR", e); in RAKP34()
106 session->updateLastTransactionTime(); in RAKP34()
108 auto authAlgo = session->getAuthAlgo(); in RAKP34()
113 * 2) Remote Console Session ID - 4 bytes in RAKP34()
114 * 3) Session Privilege Level - 1 byte in RAKP34()
119 // Remote Console Session ID in RAKP34()
120 auto rcSessionID = endian::to_ipmi(session->getRCSessionID()); in RAKP34()
122 // Session Privilege Level in RAKP34()
123 auto sessPrivLevel = static_cast<uint8_t>(session->reqMaxPrivLevel); in RAKP34()
126 auto userLength = static_cast<uint8_t>(session->userName.size()); in RAKP34()
140 // Remote Console Session ID in RAKP34()
145 // Session Privilege Level in RAKP34()
154 std::copy_n(session->userName.data(), userLength, iter); in RAKP34()
170 // close the session in RAKP34()
171 session::Manager::get().stopSession(session->getBMCSessionID()); in RAKP34()
177 * Session Integrity Key in RAKP34()
181 * 3) Session Privilege Level - 1 byte in RAKP34()
202 // Session Privilege Level in RAKP34()
211 std::copy_n(session->userName.data(), userLength, iter); in RAKP34()
213 // Generate Session Integrity Key in RAKP34()
224 * 2) Managed System Session ID - 4 bytes in RAKP34()
228 // Get Managed System Session ID in RAKP34()
229 auto bmcSessionID = endian::to_ipmi(session->getBMCSessionID()); in RAKP34()
241 // Managed System Session ID in RAKP34()
264 applyIntegrityAlgo(session->getBMCSessionID()); in RAKP34()
267 applyCryptAlgo(session->getBMCSessionID()); in RAKP34()
269 session->state(static_cast<uint8_t>(session::State::active)); in RAKP34()