Artemii Bigdan suggested a patch for Nitorokey 3.
I found:
https://github.com/Nitrokey/nitrokey-3-firmware/blob/main/docs/index.md
So, we can support it better.
Artemii Bigdan suggested a patch for Nitorokey 3.
I found:
https://github.com/Nitrokey/nitrokey-3-firmware/blob/main/docs/index.md
So, we can support it better.
Following the description of https://github.com/Nitrokey/nitrokey-3-firmware/blob/main/docs/usbip.md
I managed to run it by cargo run --features ccid.
I can see it by lsusb:
... ID 20a0:42b2 Clay Logic Nitrokey 3A Mini/3A NFC/3C NFC
But it fails (disappeared) when I do lsusb -v -d.
When I do usbip attach -r localhost -b 1-1 again, it appears again.
Unfortunately, it does not work out-of-box. I'm using in-stock CCID driver of GnuPG.
$ gpg --card-status gpg: OpenPGP card not available: Invalid value
Let me debug it.
I need this patch for ccid-driver.c (which is not clean, but device specific):
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c index 2e955ea52..df7bfefc2 100644 --- a/scd/ccid-driver.c +++ b/scd/ccid-driver.c @@ -2139,6 +2139,9 @@ bulk_in (ccid_driver_t handle, unsigned char *buffer, size_t length, return CCID_DRIVER_ERR_INV_VALUE; /* Faulty libusb. */ *nread = msglen; + if (msglen == 0) + goto retry; + if (msglen < 10) { DEBUGOUT_1 ("bulk-in msg too short (%u)\n", (unsigned int)msglen);