aboutsummaryrefslogtreecommitdiffstats
path: root/SoftHSMv2/src/lib/session_mgr/Session.h
diff options
context:
space:
mode:
Diffstat (limited to 'SoftHSMv2/src/lib/session_mgr/Session.h')
-rw-r--r--SoftHSMv2/src/lib/session_mgr/Session.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/SoftHSMv2/src/lib/session_mgr/Session.h b/SoftHSMv2/src/lib/session_mgr/Session.h
index 142aaa5..128fb2b 100644
--- a/SoftHSMv2/src/lib/session_mgr/Session.h
+++ b/SoftHSMv2/src/lib/session_mgr/Session.h
@@ -124,6 +124,9 @@ public:
void setSymmetricKey(SymmetricKey* inSymmetricKey);
SymmetricKey* getSymmetricKey();
+ void setKeyHandle(CK_OBJECT_HANDLE inHKey);
+ CK_OBJECT_HANDLE getKeyHandle();
+
private:
// Constructor
Session();
@@ -170,6 +173,9 @@ private:
// Symmetric Crypto
SymmetricKey* symmetricKey;
+
+ // Storing Key handle in session
+ CK_OBJECT_HANDLE hKey;
};
#endif // !_SOFTHSM_V2_SESSION_H