Closed d-e-s-o closed 3 years ago
Can this pull request please be merged? @szszszsz
Noted! Sorry for the delay. Scheduled early for the next week.
Merged, thank you!
Will you cut a new release with this fix? Without it, it's not possible to test for the Librem Key without manual labor in the form of physically replugging hardware keys.
Yes, should be done this week (delayed from the previous one).
The device discovery in NitrokeyManager's connect_with_path method is broken. It tries to statically determine the vendor ID by using the first working HID pointer. That's obviously not working when a both a Nitrokey device and Librem Key are connected and the path is describing a Librem Key. In such a case the vendor ID used would be that for the Nitrokey and we would not be able to find the Librem Key at all. This change fixes up the logic.