Skip to content

Commit d56f856

Browse files
authored
PKCS11: Fix returning attribute length (#21)
PKCS11: Fix returning attribute length
1 parent 5fc4c4b commit d56f856

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎pkcs11/util_pkcs11.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,8 @@ static CK_RV get_attribute_opaque(CK_ATTRIBUTE_TYPE type,
12181218
case CKA_SUBJECT:
12191219
case CKA_ISSUER:
12201220
case CKA_SERIAL_NUMBER:
1221+
*((CK_BYTE_PTR *) value) = NULL;
1222+
*length = 0;
12211223
break;
12221224

12231225
default:

0 commit comments

Comments
 (0)