diff options
author | Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com> | 2018-03-27 09:24:56 -0700 |
---|---|---|
committer | Pramod <pramod.raghavendra.jayathirth@intel.com> | 2018-03-30 02:17:20 +0000 |
commit | 4ba28823277dd1d154e4a26f7eae440c40b1f9fd (patch) | |
tree | 6acf40941e2cb98670374be20279e18cc96b5c64 /SoftHSMv2/src/lib/session_mgr/Session.h | |
parent | 8a5b33a9ba846d785d244e29bc29a46f7be34928 (diff) |
Adds the HardwareInfra layer in SoftHSM
This enables the support of multiple HSMs
Issue-ID: AAF-200
Change-Id: I825a72a0bf46827ff3be0c0311085cf970b970a6
Signed-off-by: Pramod <pramod.raghavendra.jayathirth@intel.com>
Diffstat (limited to 'SoftHSMv2/src/lib/session_mgr/Session.h')
-rw-r--r-- | SoftHSMv2/src/lib/session_mgr/Session.h | 6 |
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 |