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

Handle reference data not found in metadata command #558

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

G1gg1L3s
Copy link

This PR adds handling of the reference data not found in the metadata command which is returned when an object doesn't exist. We treat it as Error::NotFound. I tried to add a small test for it, though it may be a bit flaky.

Also, when I tried other commands on an empty slot ('sign' and 'attest'), they returned an "invalid param" error rather than "not found" or something similar, so I believe we can't handle this case with those commands.

Fixes #557.

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

Successfully merging this pull request may close these issues.

It's impossible to detect if keypair exists in PIV
1 participant