Skip to content

Commit

Permalink
Added missing data attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
yota9 authored and qpernil committed Nov 27, 2023
1 parent a72b205 commit 68004a3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ykcs11/objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,20 @@ static CK_RV get_doa(ykcs11_slot_t *s, piv_obj_id_t obj, CK_ATTRIBUTE_PTR templa
data = s->data[piv_objects[obj].sub_id].data;
break;

case CKA_COPYABLE:
DBG("COPYABLE");
len = sizeof(CK_BBOOL);
tmp = CK_FALSE;
data = &tmp;
break;

case CKA_DESTROYABLE:
DBG("DESTROYABLE");
len = sizeof(CK_BBOOL);
tmp = CK_TRUE;
data = &tmp;
break;

default:
DBG("UNKNOWN ATTRIBUTE %lx (%lu)", template[0].type, template[0].type);
return CKR_ATTRIBUTE_TYPE_INVALID;
Expand Down

0 comments on commit 68004a3

Please sign in to comment.