Skip to content

Commit

Permalink
PKCS11: Fix returning attribute length (#21)
Browse files Browse the repository at this point in the history
PKCS11: Fix returning attribute length
  • Loading branch information
aveenismail committed Aug 2, 2023
1 parent 5fc4c4b commit d56f856
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkcs11/util_pkcs11.c
Expand Up @@ -1218,6 +1218,8 @@ static CK_RV get_attribute_opaque(CK_ATTRIBUTE_TYPE type,
case CKA_SUBJECT:
case CKA_ISSUER:
case CKA_SERIAL_NUMBER:
*((CK_BYTE_PTR *) value) = NULL;
*length = 0;
break;

default:
Expand Down

0 comments on commit d56f856

Please sign in to comment.