Skip to content

Commit

Permalink
pkcs15-framework.c NSS tests profile for CKA_TOKEN
Browse files Browse the repository at this point in the history
 Date:      Thu Nov 2 09:00:17 2023 -0500
 On branch pkcs11-profile-fix
 Changes to be committed:
	modified:   framework-pkcs15.c
  • Loading branch information
dengert authored and Jakuje committed Nov 16, 2023
1 parent 15f0db4 commit 1e625a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pkcs11/framework-pkcs15.c
Original file line number Diff line number Diff line change
Expand Up @@ -5305,6 +5305,10 @@ pkcs15_profile_get_attribute(struct sc_pkcs11_session *session, void *object, CK
check_attribute_buffer(attr, sizeof(CK_ULONG));
*(CK_ULONG*)attr->pValue = pobj->profile_id;
break;
case CKA_TOKEN:
check_attribute_buffer(attr, sizeof(CK_BBOOL));
*(CK_BBOOL*)attr->pValue = CK_TRUE;
break;
default:
return CKR_ATTRIBUTE_TYPE_INVALID;
}
Expand Down

0 comments on commit 1e625a3

Please sign in to comment.