aboutsummaryrefslogtreecommitdiffstats
path: root/SoftHSMv2/src/lib/session_mgr/Session.cpp
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-05-23 22:31:41 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-23 22:31:41 +0000
commita1e6976c77fdc088a574e3b58cb18d57ddfd2498 (patch)
tree7fb1f0a63d47d533817c24471b05566fc35cac6b /SoftHSMv2/src/lib/session_mgr/Session.cpp
parent4c727ecb7cf150a2c054e7581f3d135cecccf296 (diff)
parent57c7ad1aa0e485b5594f27f1ab501ff0306fe2fc (diff)
Merge "Added a new Attribute to store TPM key handle"
Diffstat (limited to 'SoftHSMv2/src/lib/session_mgr/Session.cpp')
-rw-r--r--SoftHSMv2/src/lib/session_mgr/Session.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/SoftHSMv2/src/lib/session_mgr/Session.cpp b/SoftHSMv2/src/lib/session_mgr/Session.cpp
index 54c0ff7..67820ed 100644
--- a/SoftHSMv2/src/lib/session_mgr/Session.cpp
+++ b/SoftHSMv2/src/lib/session_mgr/Session.cpp
@@ -61,6 +61,7 @@ Session::Session(Slot* inSlot, bool inIsReadWrite, CK_VOID_PTR inPApplication, C
// Storing Key handle in session
hKey = CK_INVALID_HANDLE;
+ hwCryptoOpaque = NULL;
}
// Constructor
@@ -91,6 +92,7 @@ Session::Session()
// Storing Key handle in session
hKey = CK_INVALID_HANDLE;
+ hwCryptoOpaque = NULL;
}
// Destructor
@@ -471,3 +473,14 @@ SymmetricKey* Session::getSymmetricKey()
{
return symmetricKey;
}
+
+void Session::setHwCryptoOpaque(void *inHwCryptoOpaque )
+{
+ hwCryptoOpaque = inHwCryptoOpaque;
+}
+
+void* Session::getHwCryptoOpaque()
+{
+ return hwCryptoOpaque;
+}
+