Skip to content

Commit e8d542e

Browse files
AearsisOndřej Hlavatý
authored andcommitted
DB: Add missing attribute types
These are commonly present and missing them causes inconsistent behavior - attributes can be stored successfully but not retrieved later. Signed-off-by: Ondřej Hlavatý <[email protected]>
1 parent 4fc483a commit e8d542e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/object_store/DBObject.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ static AttributeKind attributeKind(CK_ATTRIBUTE_TYPE type)
489489
case CKA_EXPONENT_1: return akBinary;
490490
case CKA_EXPONENT_2: return akBinary;
491491
case CKA_COEFFICIENT: return akBinary;
492+
case CKA_PUBLIC_KEY_INFO: return akBinary;
492493
case CKA_PRIME: return akBinary;
493494
case CKA_SUBPRIME: return akBinary;
494495
case CKA_BASE: return akBinary;
@@ -503,6 +504,7 @@ static AttributeKind attributeKind(CK_ATTRIBUTE_TYPE type)
503504
case CKA_KEY_GEN_MECHANISM: return akInteger;
504505
case CKA_MODIFIABLE: return akBoolean;
505506
case CKA_COPYABLE: return akBoolean;
507+
case CKA_DESTROYABLE: return akBoolean;
506508
case CKA_ECDSA_PARAMS: return akBinary;
507509
case CKA_EC_POINT: return akBinary;
508510
case CKA_SECONDARY_AUTH: return akBoolean;

0 commit comments

Comments
 (0)