- add CKF_TOKEN_INITIALIZED flag
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@467 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
c1a8dc8c23
commit
84943898b9
|
@ -228,6 +228,7 @@ static CK_RV pkcs15_create_slot(struct sc_pkcs11_card *p11card,
|
|||
|
||||
pkcs15_init_token_info(card, &slot->token_info);
|
||||
slot->token_info.flags = CKF_USER_PIN_INITIALIZED
|
||||
| CKF_TOKEN_INITIALIZED
|
||||
| CKF_WRITE_PROTECTED;
|
||||
slot->fw_data = auth;
|
||||
|
||||
|
@ -346,6 +347,12 @@ static CK_RV pkcs15_create_tokens(struct sc_pkcs11_card *p11card)
|
|||
}
|
||||
}
|
||||
|
||||
/* Create read/write slots */
|
||||
while (slot_allocate(&slot, p11card) == CKR_OK) {
|
||||
pkcs15_init_token_info(card, &slot->token_info);
|
||||
slot->token_info.flags = CKF_TOKEN_INITIALIZED;
|
||||
}
|
||||
|
||||
debug(context, "All tokens created\n");
|
||||
return CKR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue