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

U2F key_lookup: do not fail upon SW_WRONG_LENGTH (0x6700) #819

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/fido/param.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@

/* ISO7816-4 status words. */
#define SW1_MORE_DATA 0x61
#define SW_WRONG_LENGTH 0x6700
#define SW_CONDITIONS_NOT_SATISFIED 0x6985
#define SW_WRONG_DATA 0x6a80
#define SW_NO_ERROR 0x9000
Expand Down
1 change: 1 addition & 0 deletions src/u2f.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ key_lookup(fido_dev_t *dev, const char *rp_id, const fido_blob_t *key_id,
*found = 1; /* key exists */
break;
case SW_WRONG_DATA:
case SW_WRONG_LENGTH:
*found = 0; /* key does not exist */
break;
default:
Expand Down
Loading