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

NFC and ISO7816 Support #111

Closed
wants to merge 1 commit into from
Closed

NFC and ISO7816 Support #111

wants to merge 1 commit into from

Conversation

1Dragoon
Copy link

@1Dragoon 1Dragoon commented Nov 4, 2022

Allows reading the smart card status. This enables additional functionality for detecting the type of card present in the reader.

@1Dragoon
Copy link
Author

1Dragoon commented Nov 5, 2022

Just realized extra handling is needed for cards in the removed state, don't merge.
EDIT: Nevermind, just had a misconfigured yubikey

@1Dragoon 1Dragoon changed the title SCardStatus support NFC and ISO7816 Support Nov 5, 2022
// The PIN is required to use and modify certain slots.
//
// After a specific number of authentication attemps with an invalid PIN,
// usually 3, the PIN will become block and refuse further attempts. At that
// point the PUK must be used to unblock the PIN.
//
// Use DefaultPIN if the PIN hasn't been set.
func (yk *YubiKey) authPIN(pin string) error {
func (yk *YubiKey) AuthPIN(pin string) error {
Copy link
Author

Choose a reason for hiding this comment

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

Note: If an application wants to cache a pin, then it is helpful if it has a way to determine if it's even valid first before trying to use it later.

@1Dragoon 1Dragoon closed this by deleting the head repository Mar 12, 2023
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