Skip to content

Commit

Permalink
CK_ATTRIBUTE_SMART::IsBool(): 3 new booleans
Browse files Browse the repository at this point in the history
CKA_ALWAYS_AUTHENTICATE, CKA_EXTRACTABLE & CKA_WRAP_WITH_TRUSTED are
boolean attributes.

IsBool() (C code) is now in sync with isBool() (Python code)
  • Loading branch information
LudovicRousseau committed May 4, 2020
1 parent f7331ba commit a3ab558
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ck_attribute_smart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@
{
switch(m_type)
{
case CKA_ALWAYS_AUTHENTICATE:
case CKA_ALWAYS_SENSITIVE:
case CKA_DECRYPT:
case CKA_DERIVE:
case CKA_ENCRYPT:
case CKA_EXTRACTABLE:
case CKA_HAS_RESET:
case CKA_LOCAL:
case CKA_MODIFIABLE:
Expand All @@ -113,6 +115,7 @@
case CKA_VERIFY:
case CKA_VERIFY_RECOVER:
case CKA_WRAP:
case CKA_WRAP_WITH_TRUSTED:
return true;
default:
return false;
Expand Down

0 comments on commit a3ab558

Please sign in to comment.