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

lib: Add support for not returning PIN when using bio verification #509

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

aveenismail
Copy link
Member

No description provided.

lib/ykpiv.c Outdated Show resolved Hide resolved
lib/ykpiv.c Outdated Show resolved Hide resolved
lib/ykpiv.c Outdated Show resolved Hide resolved
lib/ykpiv.c Show resolved Hide resolved
Copy link
Contributor

@notdpate notdpate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should work. If something horrible happens, I can change things around in the next ykmd release. I'd test this in as many scenarios as possible.

From what I understand, the piv tool is only ever going to use the "blank" verify for keyref 80 to check if piv is selected (which it does through ykpiv_verify_select(), but it's not an option that the user can force through actions and/or command line arguments.

For bio, it's going to use the 03 variant, which doesn't return the session pin, since it doesn't really need it. The code paths should allow ykmd to continue to use the 02 and 01 variants to get the session pin and verify the session pin.

@aveenismail aveenismail merged commit 12a8cd0 into master Sep 12, 2024
25 checks passed
@aveenismail aveenismail deleted the verify_bio branch September 12, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants