diff --git a/Makefile b/Makefile index 2d1e784..b6dac45 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ EXAMPLE_NAME := fido +.NOTPARALLEL: + all: | start-sim attach finish-message .PHONY: finish-message diff --git a/README.md b/README.md index ac1d510..fd662f3 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ # USB/IP Simulation -This runner allows using USB/IP as a means to simulate device connection +This library allows using USB/IP as a means to simulate device connection to the OS, and should allow faster development of the embedded applications. Remarks: - Extensible with CTAP apps: currently FIDO and Admin are active; -- Does not work with Firefox at the moment; +- Does not work with Firefox' CTAP1 at the moment; - Allows to inject own FIDO certificates, and device properties; +- Mostly stable CCID support (WIP); - Requires multiple `usbip attach` calls to make it work [1]. [1] https://github.com/Sawchord/usbip-device#known-bugs @@ -15,7 +16,7 @@ Remarks: USB/IP tools are required to work, as well as kernel supporting it. -On Fedora these could be installed with: +On Fedora Linux these could be installed with: ``` make setup-fedora ``` diff --git a/fido2-patch/0001-Ignore-difference-between-the-sent-data-size-and-rep.patch b/fido2-patch/0001-Ignore-difference-between-the-sent-data-size-and-rep.patch deleted file mode 100644 index d213de8..0000000 --- a/fido2-patch/0001-Ignore-difference-between-the-sent-data-size-and-rep.patch +++ /dev/null @@ -1,27 +0,0 @@ -From aa6019ee64df3b85db92ffa3a4894f614b062437 Mon Sep 17 00:00:00 2001 -From: Szczepan Zalega -Date: Mon, 27 Jun 2022 14:07:58 +0200 -Subject: [PATCH] Ignore difference between the sent data size and reported - -Required for the USB/IP simulation, as apparently calls on it always return 1. ---- - fido2/hid/base.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/fido2/hid/base.py b/fido2/hid/base.py -index a184265..5cc2187 100644 ---- a/fido2/hid/base.py -+++ b/fido2/hid/base.py -@@ -74,7 +74,8 @@ def close(self): - - def write_packet(self, packet): - if os.write(self.handle, packet) != len(packet): -- raise OSError("failed to write entire packet") -+ # raise OSError("failed to write entire packet") -+ pass - - def read_packet(self): - return os.read(self.handle, self.descriptor.report_size_in) --- -2.35.3 -