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

Allow three instead of two PIN retries per boot #36

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

robin-nitrokey
Copy link
Member

Previously, a PinAuthBlocked error was already returned after two wrong PIN entries. The reason for this as that decrement_retries also checks if the allowed retries are exceeded. This as unnecessary because pin_blocked is always checked before decrement_retries is called.

This patch removes the check in decrement_retries.

Fixes: #35

Previously, a PinAuthBlocked error was already returned after two wrong
PIN entries. The reason for this as that decrement_retries also checks
if the allowed retries are exceeded. This as unnecessary because
pin_blocked is always checked before decrement_retries is called.

This patch removes the check in decrement_retries.

Fixes: trussed-dev#35
@nickray nickray force-pushed the runtime-pin-retries branch from e96d54d to 7a86e2f Compare September 13, 2023 07:43
@nickray nickray merged commit 713c5e7 into trussed-dev:main Sep 13, 2023
@robin-nitrokey robin-nitrokey deleted the runtime-pin-retries branch September 13, 2023 11:40
robin-nitrokey pushed a commit to robin-nitrokey/fido-authenticator that referenced this pull request Oct 4, 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.

Allow three instead of two PIN retries per boot
2 participants