Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C_InitToken with a slot already initialized causes issues #577

Closed
williamcroberts opened this issue Jul 31, 2020 · 0 comments · Fixed by #572
Closed

C_InitToken with a slot already initialized causes issues #577

williamcroberts opened this issue Jul 31, 2020 · 0 comments · Fixed by #572
Assignees
Labels
bug Something isn't working

Comments

@williamcroberts
Copy link
Member

C_InitToken can re-initialize existing tokens, however, this is yet to be supported (see #576) and causes some issues. For now, just make it return CKR_DEVICE_ERROR;

@williamcroberts williamcroberts self-assigned this Jul 31, 2020
@williamcroberts williamcroberts added the bug Something isn't working label Jul 31, 2020
williamcroberts pushed a commit to williamcroberts/tpm2-pkcs11 that referenced this issue Jul 31, 2020
The spec allows for re-initilization of existing tokens, however, the
current implementation does not allow for this, so return
CKR_DEVICE_ERROR for now and follow up with bug tpm2-software#576.

Fixes: tpm2-software#577

Signed-off-by: William Roberts <william.c.roberts@intel.com>
@williamcroberts williamcroberts linked a pull request Aug 3, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant