Skip to content

fix(yubikey): Handle errors and multiple smartcards#504

Open
Fahrj wants to merge 1 commit into
Foxboron:masterfrom
Fahrj:yubikey-detection
Open

fix(yubikey): Handle errors and multiple smartcards#504
Fahrj wants to merge 1 commit into
Foxboron:masterfrom
Fahrj:yubikey-detection

Conversation

@Fahrj

@Fahrj Fahrj commented Jul 16, 2026

Copy link
Copy Markdown

This commit generally improves the detection of YubiKeys, in detail:

-Errors when accessing smart cards with piv.Cards() are no longer suppressed
-Properly handle cases where there are multiple non-yubikey smartcards
-Code re-structure to avoid goto and make it more maintainable

This commit generally improves the detection of YubiKeys, in detail:

-Errors when accessing smart cards with `piv.Cards()` are no longer
suppressed
-Properly handle cases where there are multiple non-yubikey smartcards
-Code re-structure to avoid `goto` and make it more maintainable
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.

1 participant