Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hid_osx: read reports through a pipe
the callback passed to IOHIDDeviceRegisterInputReportCallback() may be called multiple times while we are in CFRunLoopRunInMode(). we need to store the reports somewhere; a pipe is convenient (allowing fido_hid_read() to keep UNIX-like read() semantics), spacious (at least a page in size), and has adequate I/O properties (atomic writes up to PIPE_BUF bytes, where PIPE_BUF > CTAP_MAX_REPORT_LEN).
- Loading branch information
1 parent
5ccde03
commit 835309b
Showing
1 changed file
with
79 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters