Bug - Private Handle mandatory 73/57373/1
authorRitu Sood <ritu.sood@intel.com>
Wed, 25 Jul 2018 02:41:17 +0000 (02:41 +0000)
committerRitu Sood <ritu.sood@intel.com>
Wed, 25 Jul 2018 02:42:54 +0000 (02:42 +0000)
Private handle should not be mandatory
as it is not needed in no HW support case

Change-Id: I92158cb0b90f2b661ac091afc4131ad048887e17
Issue-ID: AAF-405
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
SoftHSMv2/src/lib/P11Attributes.h

index 7cc9976..8c9b98b 100644 (file)
@@ -1270,7 +1270,7 @@ class P11AttrPrivateHandle : public P11Attribute
 {
 public:
         // Constructor
-        P11AttrPrivateHandle(OSObject* inobject) : P11Attribute(inobject) { type = CKA_OS_PRIVATE_HANDLE; checks = ck1; }
+        P11AttrPrivateHandle(OSObject* inobject) : P11Attribute(inobject) { type = CKA_OS_PRIVATE_HANDLE; checks = 0; }
 
 protected:
         // Set the default value of the attribute