summaryrefslogtreecommitdiffstats
path: root/sessions_manager.cpp
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2017-11-29 08:36:29 -0800
committerBrad Bishop <bradleyb@us.ibm.com>2017-12-08 21:55:44 -0500
commit7e9e2ef68a1c53e022970d85566945d5bdc5a78e (patch)
tree946c6772654bdd8ecaed04498938999f49154b53 /sessions_manager.cpp
parent9b307be647ff786f05c03fa742b982d99dd341ae (diff)
downloadphosphor-net-ipmid-7e9e2ef68a1c53e022970d85566945d5bdc5a78e.tar.gz
phosphor-net-ipmid-7e9e2ef68a1c53e022970d85566945d5bdc5a78e.zip
Add support for cipher suite 17
cipher suite 17 uses RAKP_HMAC_SHA256 for authentication and RAKP_HMAC_SHA256_128 for integrity. This adds those in and fixes up the lookups so the stack knows about the new algorithms. Change-Id: Icdc66563d08060fc0e541ceaf3bee9dd5f89fdb2 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Diffstat (limited to 'sessions_manager.cpp')
-rw-r--r--sessions_manager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/sessions_manager.cpp b/sessions_manager.cpp
index ddeca4c..0f49a2d 100644
--- a/sessions_manager.cpp
+++ b/sessions_manager.cpp
@@ -74,6 +74,13 @@ std::weak_ptr<Session> Manager::startSession(SessionID remoteConsoleSessID,
cryptAlgo));
break;
}
+ case cipher::rakp_auth::Algorithms::RAKP_HMAC_SHA256:
+ {
+ session->setAuthAlgo(
+ std::make_unique<cipher::rakp_auth::AlgoSHA256>(
+ intAlgo, cryptAlgo));
+ break;
+ }
default:
{
throw std::runtime_error("Invalid Authentication Algorithm");
OpenPOWER on IntegriCloud