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

init: check hidraw descriptor to figure out fido or not #264

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

7Ji
Copy link
Contributor

@7Ji 7Ji commented Jul 9, 2024

this checks the Usage Page value from report_descriptor against 0xd0f1, similar to how it's done in libfido2

references:

tested with pico-fido

this checks the Usage Page value from report_descriptor against
0xd0f1, similar to how it's done in libfido2

references:
- https://github.com/Yubico/libfido2/blob/03c18d396eb209a42bbf62f5f4415203cba2fc50/src/hid_hidapi.c#L146
- https://www.usb.org/sites/default/files/hid1_11.pdf 6.2.2.7 Global Item

tested with pico-fido

Signed-off-by: Guoxin Pu <[email protected]>
@anatol
Copy link
Owner

anatol commented Jul 9, 2024

Thank you!

@anatol anatol merged commit 276a3ef into anatol:master Jul 9, 2024
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.

2 participants