diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2017-03-31 10:19:40 +0530 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2017-04-25 12:12:02 +0530 |
commit | 895df94e3951666f30aea665d9f74f22fb43c5a7 (patch) | |
tree | 84b3ffbf6cb73e639afc0f59678da17d7b093305 /session.hpp | |
parent | d8c7861da3865ea470761612805f2d4d1e90dc6f (diff) | |
download | phosphor-net-ipmid-895df94e3951666f30aea665d9f74f22fb43c5a7.tar.gz phosphor-net-ipmid-895df94e3951666f30aea665d9f74f22fb43c5a7.zip |
Provide API to check if the confidentiality algo is enabled for the session.
Change-Id: Ia0585907191a921d7081e855e19d7a5fa9771c6b
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'session.hpp')
-rw-r--r-- | session.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/session.hpp b/session.hpp index 553f992..ce80a86 100644 --- a/session.hpp +++ b/session.hpp @@ -211,6 +211,16 @@ class Session cryptAlgoInterface = std::move(cryptAlgo); } + /** @brief Check if confidentiality algorithm is enabled for this + * session. + * + * @return true if confidentiality algorithm is enabled else false. + */ + auto isCryptAlgoEnabled() + { + return cryptAlgoInterface ? true : false; + } + void updateLastTransactionTime() { lastTime = std::chrono::steady_clock::now(); |