Skip to content

Commit 2f382e2

Browse files
committed
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 bd93965 commit 2f382e2

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
@@ -487,6 +487,7 @@ static AttributeKind attributeKind(CK_ATTRIBUTE_TYPE type)
487487
case CKA_EXPONENT_1: return akBinary;
488488
case CKA_EXPONENT_2: return akBinary;
489489
case CKA_COEFFICIENT: return akBinary;
490+
case CKA_PUBLIC_KEY_INFO: return akBinary;
490491
case CKA_PRIME: return akBinary;
491492
case CKA_SUBPRIME: return akBinary;
492493
case CKA_BASE: return akBinary;
@@ -501,6 +502,7 @@ static AttributeKind attributeKind(CK_ATTRIBUTE_TYPE type)
501502
case CKA_KEY_GEN_MECHANISM: return akInteger;
502503
case CKA_MODIFIABLE: return akBoolean;
503504
case CKA_COPYABLE: return akBoolean;
505+
case CKA_DESTROYABLE: return akBoolean;
504506
case CKA_ECDSA_PARAMS: return akBinary;
505507
case CKA_EC_POINT: return akBinary;
506508
case CKA_SECONDARY_AUTH: return akBoolean;

0 commit comments

Comments
 (0)