summaryrefslogtreecommitdiffstats
path: root/command/open_session.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Return the maximum privilege in open session commandTom Joseph2019-02-121-3/+18
| | | | | | | | | | | | | | | | | | 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>
* netipmid: replace std::cerr with phosphor::logging callsVernon Mauery2018-12-191-3/+5
| | | | | | | | This is part of a cleanup and standardization effort of code to get existing code up to date. Change-Id: I0c982ef8d7afa2f56a9cd204bb8ac3112769641c Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* netipmid: use std::shared_ptr instead of weak_ptr/lockVernon Mauery2018-11-061-10/+9
| | | | | | | | | | | | | All of the instances of getSession and startSession were assigning the result to a local shared_ptr via lock on the weak_ptr. It doesn't make sense to demote the shared_ptr (from the sessionsMap) to a weak_ptr via the return, only to promote to a shared_ptr again via lock. Tested-by: running ipmitool -H a.b.c.d -P 0penBmc -I lanplus mc info Sessions start and stop, same as before. Change-Id: Ic10779285891d73ee51115f16ed0000b38d1c52a Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* netipmid: apply clang-format rulesVernon Mauery2018-11-021-24/+29
| | | | | | | | Lots of whitespace change. Let clang-format do its job and keep the code looking nice. Change-Id: Idfcad1a99cab8170d55a06163de8ad3f420b68b7 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Patch #2 Reducing IPMI logging footprintNagaraju Goruganti2018-04-021-3/+0
| | | | | | | | | | net-ipmid is noisy in terms of journal logging. A small step towards cleaning that up. Partially Resolves openbmc/openbmc#2507 Change-Id: I78e0286fb37086373c86dca276c0948f4595cb0a Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Prepare for adding RMCP+ cipher suite 17Vernon Mauery2017-12-071-4/+4
| | | | | | | | | | In many places, there are baked-in assumptions about algorithms that tie the session initiation to cipher suite 3. This commit teases out those assumptions and prepares for the next patch that actually adds in the new authentication and integrity algorithms to support cipher suite 17. Change-Id: I2ee3672a7c503b89c5ff0aba30cf7a4601e24d04 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Change the signature of the command handler functions.Tom Joseph2017-04-251-2/+2
| | | | | | | Resolves openbmc/openbmc#857 Change-Id: I0b7ca6665dd89629838a238d77aff67fec1818c7 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Validate Integrity Algorithm in Open Session Request commandTom Joseph2017-02-241-4/+2
| | | | | Change-Id: I54106099fbbe50156529644eaadd65dc1db7e141 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Validate Confidentiality Algo in Open Session requestTom Joseph2017-02-241-1/+2
| | | | | Change-Id: I208e09926a18e215212564eca3203094015724c9 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Authentication Algo keeps record of the Confidentiality algoTom Joseph2017-02-241-1/+2
| | | | | | | | | The confidentiality algo negotiated during Open Session Request would be stored in the Authentication algorithm and is activated once the session setup is successful. Change-Id: I4d5efd71a992dd0cf505bcf7a6d9ebb394bcb880 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Validate Integrity Algo in Open Session requestTom Joseph2017-01-171-2/+6
| | | | | Change-Id: I75de159fafd42a677b646ae6e2c5605872ebc8f3 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Open Session Request/Response ImplementationTom Joseph2016-12-161-0/+93
Change-Id: I2726f52c8eb331575677fb0e6a52943a2c5f5865 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
OpenPOWER on IntegriCloud