From 4ba28823277dd1d154e4a26f7eae440c40b1f9fd Mon Sep 17 00:00:00 2001 From: Pramod Raghavendra Jayathirth Date: Tue, 27 Mar 2018 09:24:56 -0700 Subject: Adds the HardwareInfra layer in SoftHSM This enables the support of multiple HSMs Issue-ID: AAF-200 Change-Id: I825a72a0bf46827ff3be0c0311085cf970b970a6 Signed-off-by: Pramod --- SoftHSMv2/src/lib/session_mgr/Session.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'SoftHSMv2/src/lib/session_mgr/Session.h') 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 -- cgit 1.2.3-korg