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

p11-kit commands expecting a single token/object prints confusing error upon no match #574

Closed
ueno opened this issue Sep 22, 2023 · 0 comments · Fixed by #575
Closed

p11-kit commands expecting a single token/object prints confusing error upon no match #574

ueno opened this issue Sep 22, 2023 · 0 comments · Fixed by #575

Comments

@ueno
Copy link
Member

ueno commented Sep 22, 2023

If there are no matching objects, the p11-kit delete-object command shows the following error:

p11-kit delete-object "pkcs11:token=nonexistent"
p11-kit: failed to find the object: The operation was cancelled

This is confusing, because there is no user interaction involved, but CKR_CANCEL is only used as a convention to tell that there is no match:
https://p11-glue.github.io/p11-glue/p11-kit/manual/p11-kit-Future.html#p11-kit-iter-next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants