From 343c640d3c9ca14ffda9fda3aa3c759aff3d0c0b Mon Sep 17 00:00:00 2001 From: Ritu Sood Date: Wed, 25 Jul 2018 02:41:17 +0000 Subject: Bug - Private Handle mandatory 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 --- SoftHSMv2/src/lib/P11Attributes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoftHSMv2/src/lib/P11Attributes.h b/SoftHSMv2/src/lib/P11Attributes.h index 7cc9976..8c9b98b 100644 --- a/SoftHSMv2/src/lib/P11Attributes.h +++ b/SoftHSMv2/src/lib/P11Attributes.h @@ -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 -- cgit 1.2.3-korg