diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2017-01-24 18:21:45 +0530 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-02-24 17:02:45 +0000 |
commit | ba11f7929ec3241baad62690a1336b970e878bdf (patch) | |
tree | ad9519d520205bf884c8226ecb9cbc35630bc0df /sessions_manager.cpp | |
parent | 491dbd0126b10d3a7a1aa0745edd57ac51dab371 (diff) | |
download | phosphor-net-ipmid-ba11f7929ec3241baad62690a1336b970e878bdf.tar.gz phosphor-net-ipmid-ba11f7929ec3241baad62690a1336b970e878bdf.zip |
Authentication Algo keeps record of the Confidentiality algo
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>
Diffstat (limited to 'sessions_manager.cpp')
-rw-r--r-- | sessions_manager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sessions_manager.cpp b/sessions_manager.cpp index c4de59f..18c96ba 100644 --- a/sessions_manager.cpp +++ b/sessions_manager.cpp @@ -26,7 +26,8 @@ Manager::Manager() std::weak_ptr<Session> Manager::startSession(SessionID remoteConsoleSessID, Privilege priv, cipher::rakp_auth::Algorithms authAlgo, - cipher::integrity::Algorithms intAlgo) + cipher::integrity::Algorithms intAlgo, + cipher::crypt::Algorithms cryptAlgo) { std::shared_ptr<Session> session = nullptr; SessionID sessionID = 0; @@ -69,7 +70,8 @@ std::weak_ptr<Session> Manager::startSession(SessionID remoteConsoleSessID, case cipher::rakp_auth::Algorithms::RAKP_HMAC_SHA1: { session->setAuthAlgo( - std::make_unique<cipher::rakp_auth::AlgoSHA1>(intAlgo)); + std::make_unique<cipher::rakp_auth::AlgoSHA1>(intAlgo, + cryptAlgo)); break; } default: |