Skip to content

Commit

Permalink
CKA_HW_FEATURE_TYPE artibute value is a number
Browse files Browse the repository at this point in the history
The default value Bin was used before and it was an error.

return _LowLevel.CK_ATTRIBUTE_SMART_SetBin(self, attrType, pBuf)
TypeError: in method 'CK_ATTRIBUTE_SMART_SetBin', argument 3 of type 'std::vector< unsigned char > const &'
  • Loading branch information
LudovicRousseau committed Dec 3, 2020
1 parent 91397fd commit 86a8010
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PyKCS11/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,6 +1264,7 @@ def isNum(self, type):
"""
if type in (CKA_CERTIFICATE_TYPE,
CKA_CLASS,
CKA_HW_FEATURE_TYPE,
CKA_KEY_GEN_MECHANISM,
CKA_KEY_TYPE,
CKA_MODULUS_BITS,
Expand Down

0 comments on commit 86a8010

Please sign in to comment.