Home
last modified time | relevance | path

Searched full:session (Results 1 – 25 of 708) sorted by relevance

12345678910>>...29

/openbmc/qemu/crypto/
H A Dtlssession.c2 * QEMU crypto TLS session support
68 qcrypto_tls_session_free(QCryptoTLSSession *session) in qcrypto_tls_session_free() argument
70 if (!session) { in qcrypto_tls_session_free()
74 error_free(session->rerr); in qcrypto_tls_session_free()
75 error_free(session->werr); in qcrypto_tls_session_free()
77 gnutls_deinit(session->handle); in qcrypto_tls_session_free()
78 g_free(session->hostname); in qcrypto_tls_session_free()
79 g_free(session->peername); in qcrypto_tls_session_free()
80 g_free(session->authzid); in qcrypto_tls_session_free()
81 object_unref(OBJECT(session->creds)); in qcrypto_tls_session_free()
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/
H A DSession_v1.xml4 <!--# Redfish Schema: Session v1.8.0 -->
33 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Session">
37 <EntityType Name="Session" BaseType="Resource.v1_0_0.Resource" Abstract="true">
38 …nnotation Term="OData.Description" String="The `Session` resource describes a single connection (s…
39 …<Annotation Term="OData.LongDescription" String="This resource shall represent a session for a Red…
53 … <Annotation Term="OData.Description" String="Delete the `Session` resource to remove a session."/>
64 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Session.v1_0_0">
68 <EntityType Name="Session" BaseType="Session.Session">
72 … <Annotation Term="OData.Description" String="The username for the account for this session."/>
73 …matches an account recognized by the account service. When a creating a session through a Redfish…
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/installed/
H A DSession_v1.xml4 <!--# Redfish Schema: Session v1.8.0 -->
33 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Session">
37 <EntityType Name="Session" BaseType="Resource.v1_0_0.Resource" Abstract="true">
38 …nnotation Term="OData.Description" String="The `Session` resource describes a single connection (s…
39 …<Annotation Term="OData.LongDescription" String="This resource shall represent a session for a Red…
53 … <Annotation Term="OData.Description" String="Delete the `Session` resource to remove a session."/>
64 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Session.v1_0_0">
68 <EntityType Name="Session" BaseType="Session.Session">
72 … <Annotation Term="OData.Description" String="The username for the account for this session."/>
73 …matches an account recognized by the account service. When a creating a session through a Redfish…
[all …]
/openbmc/phosphor-net-ipmid/
H A Dsession.hpp26 namespace session namespace
47 * @struct SequenceNumbers Session Sequence Numbers
49 * IPMI v2.0 RMCP+ Session Sequence Numbers are used for rejecting packets that
51 * two sets of Session SequenceNumbers for a given session.One set of inbound
55 * The individual Session Sequence Numbers is are initialized to zero whenever
56 * a session is created and incremented by one at the start of outbound
58 * as the sequence number, not 0). Session Sequence numbers are incremented for
84 * @class Session
86 * Encapsulates the data related to an IPMI Session
89 * a session. Once established, a session is identified by a Session ID. The
[all …]
H A Dsessions_manager.cpp4 #include "session.hpp"
15 namespace session namespace
18 static std::array<uint8_t, session::maxNetworkInstanceSupported>
29 index < session::maxNetworkInstanceSupported) in setNetworkInstance()
56 * Session ID is 0000_0000h for messages that are sent outside the session. in managerInit()
57 * The session setup commands are sent on this session, so when the session in managerInit()
58 * manager comes up, is creates the Session ID 0000_0000h. It is active in managerInit()
59 * through the lifetime of the Session Manager. in managerInit()
63 *getSdBus(), session::sessionManagerRootPath); in managerInit()
65 auto objPath = std::string(session::sessionManagerRootPath) + "/" + in managerInit()
[all …]
H A Dmessage_parsers.hpp4 #include "session.hpp"
24 // RMCP Session Header Size
65 // IPMI partial session header
79 * @return A tuple with IPMI message and the session header type to sent the
80 * response packet. In case of success incoming message and session
81 * header type. In case of failure nullptr and session header type
89 * session header
92 * @param[in] authType - Session header type to be added to the IPMI
99 const std::shared_ptr<session::Session>& session);
131 * session header
[all …]
H A Dsessions_manager.hpp4 #include "session.hpp"
16 namespace session namespace
31 * to start a session, stop a session and get reference to the session objects.
42 // BMC Session ID is the key for the map
43 using SessionMap = std::map<SessionID, std::shared_ptr<Session>>;
68 throw std::runtime_error("failed to create session manager"); in get()
75 * @brief Start an IPMI session
77 * @param[in] remoteConsoleSessID - Remote Console Session ID mentioned
84 * @return session handle on success and nullptr on failure
87 std::shared_ptr<Session> startSession(
[all …]
H A Dcommand_table.cpp44 // Do not forward any session zero commands to ipmid in executeCommand()
45 if (handler->sessionID == session::sessionZero) in executeCommand()
48 … "Table: refuse to forward session-zero command: lun: {LUN}, netFn: {NETFN}, command: {COMMAND}", in executeCommand()
53 std::shared_ptr<session::Session> session = in executeCommand() local
54 session::Manager::get().getSession(handler->sessionID); in executeCommand()
56 // Ignore messages that are not part of an active session in executeCommand()
57 auto state = static_cast<session::State>(session->state()); in executeCommand()
58 if (state != session::State::active) in executeCommand()
73 ipmi::ipmiUserGetUserId(session->userName)))}, in executeCommand()
75 ipmi::Value(static_cast<int>(session->currentPrivilege()))}, in executeCommand()
[all …]
H A Dmessage_parsers.cpp48 // Read the Session Header and invoke the parser corresponding to the in unflatten()
64 throw std::runtime_error("Invalid Session Header"); in unflatten()
71 const std::shared_ptr<session::Session>& session) in flatten() argument
78 return ipmi15parser::flatten(outMessage, session); in flatten()
82 return ipmi20parser::flatten(outMessage, session); in flatten()
100 throw std::runtime_error("IPMI1.5 Session Header Missing"); in unflatten()
106 if (sessionID != session::sessionZero) in unflatten()
108 throw std::runtime_error("IPMI1.5 session packets are unsupported"); in unflatten()
114 message->bmcSessionID = session::sessionZero; in unflatten()
138 const std::shared_ptr<session::Session>& /* session */) in flatten() argument
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/
H A DSession.v1_8_0.json2 "$id": "http://redfish.dmtf.org/schemas/v1/Session.v1_8_0.json",
3 "$ref": "#/definitions/Session",
61 "description": "The outbound connection associated with this session.",
62 …pe `OutboundConnection` that represents the outbound connection for this session. This property s…
90 "Session": { object
92 …"description": "The `Session` resource describes a single connection (session) between a client an…
93 … "longDescription": "This resource shall represent a session for a Redfish implementation.",
128 "description": "The IP address of the client that created the session.",
129 …Description": "This property shall contain the IP address of the client that created the session.",
138 "description": "A client-supplied string that is stored with the session.",
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema-installed/
H A DSession.v1_8_0.json2 "$id": "http://redfish.dmtf.org/schemas/v1/Session.v1_8_0.json",
3 "$ref": "#/definitions/Session",
61 "description": "The outbound connection associated with this session.",
62 …pe `OutboundConnection` that represents the outbound connection for this session. This property s…
90 "Session": { object
92 …"description": "The `Session` resource describes a single connection (session) between a client an…
93 … "longDescription": "This resource shall represent a session for a Redfish implementation.",
128 "description": "The IP address of the client that created the session.",
129 …Description": "This property shall contain the IP address of the client that created the session.",
138 "description": "A client-supplied string that is stored with the session.",
[all …]
/openbmc/phosphor-net-ipmid/command/
H A Dsession_cmds.cpp42 auto session = session::Manager::get().getSession(handler->sessionID); in setSessionPrivilegeLevel() local
46 response->newPrivLevel = session->currentPrivilege(); in setSessionPrivilegeLevel()
50 static_cast<uint8_t>(session::Privilege::CALLBACK) || in setSessionPrivilegeLevel()
51 reqPrivilegeLevel > static_cast<uint8_t>(session::Privilege::OEM)) in setSessionPrivilegeLevel()
57 if (reqPrivilegeLevel > (static_cast<uint8_t>(session->reqMaxPrivLevel) & in setSessionPrivilegeLevel()
58 session::reqMaxPrivMask)) in setSessionPrivilegeLevel()
66 if (session->sessionChannelAccess.privLimit < in setSessionPrivilegeLevel()
67 session->sessionUserPrivAccess.privilege) in setSessionPrivilegeLevel()
69 minPriv = session->sessionChannelAccess.privLimit; in setSessionPrivilegeLevel()
73 minPriv = session->sessionUserPrivAccess.privilege; in setSessionPrivilegeLevel()
[all …]
H A Drakp34.cpp19 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()
[all …]
H A Drakp12.cpp54 // Session ID zero is reserved for Session Setup in RAKP12()
56 session::sessionZero) in RAKP12()
58 lg2::info("RAKP12: BMC invalid Session ID"); in RAKP12()
64 std::shared_ptr<session::Session> session; in RAKP12() local
67 session = session::Manager::get().getSession( in RAKP12()
72 lg2::error("RAKP12 : session not found: {ERROR}", "ERROR", e); in RAKP12()
92 session->userName.assign(request->user_name, request->user_name_len); in RAKP12()
95 session->updateLastTransactionTime(); in RAKP12()
97 auto rcSessionID = endian::to_ipmi(session->getRCSessionID()); in RAKP12()
98 auto bmcSessionID = endian::to_ipmi(session->getBMCSessionID()); in RAKP12()
[all …]
/openbmc/openbmc-tools/reboot-ping-pong/
H A Drpp24 def __init__(self, session, prompt): argument
25 self.session = session
29 self.session.expect([".+".encode(), pexpect.TIMEOUT], timeout=5)
32 self.session.sendline()
34 self.session.sendline("obmcutil -w {}".format(cmd).encode())
35 self.session.expect(needle, timeout=None)
36 rc = self.session.after.decode()
53 self.session.sendline("obmcutil -w poweron")
54 self.session.expect(self.prompt)
57 self.session.sendline("obmcutil -w chassisoff")
[all …]
/openbmc/phosphor-host-ipmid/include/ipmid/
H A Dsessionhelper.hpp8 * @brief parse session input payload.
10 * This function retrives the session id and session handle from the session
13 * "/xyz/openbmc_project/ipmi/session/channel/sessionId_sessionHandle"
15 * Ex: "/xyz/openbmc_project/ipmi/session/eth0/12a4567d_8a"
19 * @param[in] objectPath - session object path
20 * @param[in] sessionId - retrived session id will be asigned.
21 * @param[in] sessionHandle - retrived session handle will be asigned.
23 * @return true if session id and session handle are retrived else returns
33 // getting the position of session id and session handle string from in parseCloseSessionInputPayload()
39 // get the sessionid & session handle string from the session object in parseCloseSessionInputPayload()
[all …]
/openbmc/openbmc-test-automation/redfish/service_root/
H A Dtest_sessions_management.robot26 Create Session And Verify Response Code Using Different Credentials
27 [Documentation] Create session and verify response code using different
30 [Template] Create Session And Verify Response Code
40 Create Session And Verify Response Code Using Operator Credentials
41 [Documentation] Create session and verify response code using operator
44 [Template] Create Session And Verify Response Code
50 Set Session Timeout And Verify Response Code
51 [Documentation] Set Session Timeout And Verify Response Code.
53 [Template] Set Session Timeout And Verify
54 [Teardown] Set Session Timeout And Verify ${Default_Timeout_Value} ${HTTP_OK}
[all …]
H A Dtest_sessions_connection.robot3 Documentation Test Redfish session and its connection stability.
8 Suite Setup Set Redfish Delete Session Flag ${0}
9 Suite Teardown Run Keywords Set Redfish Delete Session Flag ${1} AND Redfish.Logout
23 Create Session And Check Connection Stability
24 [Documentation] Send heartbeat on session continuously and verify connection stability.
28 # Clear old session and start new session.
34 Create Session And Check Connection Stability On Reboot
35 [Documentation] Create Session And Check Connection Stability On Reboot
39 # Clear old session and start new session.
60 # Verify session is still active and no issues on connection after reboot.
/openbmc/openbmc-test-automation/openpower/ext_interfaces/
H A Dtest_client_identifier.robot24 Create A Session With ClientID And Verify
25 [Documentation] Create a session with client id and verify client id is same.
27 [Template] Create And Verify Session ClientID
37 [Documentation] Create a session with client id and verify client id is same after the reboot.
39 [Template] Create And Verify Session ClientID
46 Create A Multiple Session With ClientID And Verify
47 [Documentation] Create a multiple session with client id and verify client id is same.
49 [Template] Create And Verify Session ClientID
57 …[Documentation] Create a multiple session with client id and verify client id is same after the r…
59 [Template] Create And Verify Session ClientID
[all …]
H A Dtest_lock_management.robot129 HMCID-02 ReadCase1,ReadCase1,ReadCase1 Session
132 Release Lock When Session Deleted
133 [Documentation] Release lock when session gets deleted.
135 [Template] Verify Release Lock When Session Deleted
182 Fail To Release Lock For Another Session
183 [Documentation] Failed to release locks from another session.
185 [Template] Verify Fail To Release Lock For Another Session
299 Get Empty Lock Records For Session Where No Locks Acquired
300 [Documentation] If session does not acquire locks then get lock should return
303 [Template] Verify No Locks Records For Session With No Acquired Lock
[all …]
/openbmc/phosphor-ipmi-blobs/
H A Dmanager.hpp52 uint16_t* session) = 0;
56 virtual bool stat(uint16_t session, BlobMeta* meta) = 0;
58 virtual bool commit(uint16_t session, const std::vector<uint8_t>& data) = 0;
60 virtual bool close(uint16_t session) = 0;
62 virtual std::vector<uint8_t> read(uint16_t session, uint32_t offset,
65 virtual bool write(uint16_t session, uint32_t offset,
70 virtual bool writeMeta(uint16_t session, uint32_t offset,
121 * Attempts to open the file specified and associates with a session.
125 * @param[in,out] session - pointer to store the session on success.
129 uint16_t* session) override;
[all …]
/openbmc/phosphor-ipmi-blobs/blobs-ipmid/
H A Dblobs.hpp96 /* The methods below are per session. */
99 * Attempt to open a session from this path.
101 * @param[in] session - the session id.
104 * @return bool - was able to open the session.
106 virtual bool open(uint16_t session, uint16_t flags,
112 * @param[in] session - the session id.
117 virtual std::vector<uint8_t> read(uint16_t session, uint32_t offset,
123 * @param[in] session - the session id.
128 virtual bool write(uint16_t session, uint32_t offset,
134 * @param[in] session - the session id.
[all …]
/openbmc/smbios-mdr/src/smbios-ipmi-blobs/test/
H A Dhandler_readwrite_unittest.cpp21 // Verify the handler checks for a valid session. in TEST_F()
24 EXPECT_FALSE(handler.write(session, 0, data)); in TEST_F()
31 EXPECT_TRUE(handler.open(session, 0, expectedBlobId)); in TEST_F()
34 EXPECT_FALSE(handler.write(session, 0, data)); in TEST_F()
42 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F()
43 EXPECT_FALSE(handler.write(session, 0, data)); in TEST_F()
50 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F()
51 EXPECT_FALSE(handler.write(session, 1, data)); in TEST_F()
58 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F()
59 EXPECT_FALSE(handler.write(session, handlerMaxBufferSize - 1, data)); in TEST_F()
[all …]
/openbmc/ipmitool/src/plugins/lanplus/
H A Dlanplus_crypt.c49 * param session holds all the state data that we need to generate the hmac
54 * SIDm - Remote console session ID
55 * SIDc - BMC session ID
72 lanplus_rakp2_hmac_matches(const struct ipmi_session * session, in lanplus_rakp2_hmac_matches() argument
83 if (session->v2_data.auth_alg == IPMI_AUTH_RAKP_NONE) in lanplus_rakp2_hmac_matches()
87 assert(session->v2_data.auth_alg == IPMI_AUTH_RAKP_HMAC_SHA1); in lanplus_rakp2_hmac_matches()
112 SIDm_lsbf = session->v2_data.console_id; in lanplus_rakp2_hmac_matches()
120 SIDc_lsbf = session->v2_data.bmc_id; in lanplus_rakp2_hmac_matches()
129 buffer[8 + i] = session->v2_data.console_rand[16 - 1 - i]; in lanplus_rakp2_hmac_matches()
132 buffer[8 + i] = session->v2_data.console_rand[i]; in lanplus_rakp2_hmac_matches()
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Dredfish_sessions.hpp41 const persistent_data::UserSession& session) in fillSessionObject() argument
43 res.jsonValue["Id"] = session.uniqueId; in fillSessionObject()
44 res.jsonValue["UserName"] = session.username; in fillSessionObject()
46 roles.emplace_back(redfish::getRoleIdFromPrivilege(session.userRole)); in fillSessionObject()
49 "/redfish/v1/SessionService/Sessions/{}", session.uniqueId); in fillSessionObject()
50 res.jsonValue["@odata.type"] = "#Session.v1_7_0.Session"; in fillSessionObject()
51 res.jsonValue["Name"] = "User Session"; in fillSessionObject()
52 res.jsonValue["Description"] = "Manager User Session"; in fillSessionObject()
53 res.jsonValue["ClientOriginIPAddress"] = session.clientIp; in fillSessionObject()
54 if (session.clientId) in fillSessionObject()
[all …]

12345678910>>...29