Skip to content

Commit

Permalink
libckteec: Enable CK_ULONG conversion for CKA_CERTIFICATE_CATEGORY
Browse files Browse the repository at this point in the history
CKA_CERTIFICATE_CATEGORY is CK_ULONG and needs to be translated to 32bits.

Signed-off-by: Vesa Jääskeläinen <[email protected]>
Reviewed-by: Etienne Carriere <[email protected]>
  • Loading branch information
vesajaaskelainen authored and jforissier committed Oct 4, 2021
1 parent f86dc66 commit 96f9ebe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libckteec/src/serialize_ck.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ static int ck_attr_is_ulong(CK_ATTRIBUTE_TYPE attribute_id)
switch (attribute_id) {
case CKA_CLASS:
case CKA_CERTIFICATE_TYPE:
case CKA_CERTIFICATE_CATEGORY:
case CKA_NAME_HASH_ALGORITHM:
case CKA_KEY_TYPE:
case CKA_HW_FEATURE_TYPE:
Expand Down

0 comments on commit 96f9ebe

Please sign in to comment.