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

readers: Initial Readers enumerator for detecting YubiKeys #51

Merged
merged 2 commits into from
Dec 2, 2019

Conversation

tarcieri
Copy link
Collaborator

@tarcieri tarcieri commented Dec 2, 2019

Adds a yubikey_piv::Readers type which opens a PC/SC context and can enumerate detected PC/SC readers with a slightly more ergonomic API than what's provided in the upstream crate.

Does not support actually instantiating a YubiKey from a Reader<'_> yet, but ideally all connections to YubiKeys should go through this API.

Update: uses the reader API to select and open a YubiKey, removing the legacy code inherited from yubico-piv-tool. Tested and working live against a YubKey.

Adds a `yubikey_piv::Readers` type which opens a PC/SC context and can
enumerate detected PC/SC readers with a slightly more ergonomic API than
what's provided in the upstream crate.

Does not support actually instantiating a `YubiKey` from a `Reader<'_>`
yet, but ideally all connections to YubiKeys should go through this API.
@tarcieri
Copy link
Collaborator Author

tarcieri commented Dec 2, 2019

This is effectively a WIP: I'm going to try to finish out opening a YubiKey using this API before merging.

Update: done!

Removes the legacy API inherited from `yubico-piv-tool` and uses
the `reader` module exclusively for selecting and opening the PC/SC
reader.
@tarcieri tarcieri merged commit 8e1469c into develop Dec 2, 2019
@tarcieri tarcieri deleted the readers branch December 2, 2019 18:20
@tarcieri tarcieri mentioned this pull request Dec 2, 2019
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