OSDN Git Service

hw/usb: Add U2F device autoscan to passthru mode
authorCésar Belley <cesar.belley@lse.epita.fr>
Wed, 26 Aug 2020 11:42:09 +0000 (13:42 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 31 Aug 2020 06:23:39 +0000 (08:23 +0200)
commitd7c1523f58190936ed08d30389399a941994d148
treed1ee6d1c2b50d6cdf412aa49dd1f17a8b1469854
parent4ee40a6b98c02b72fc5dd262df9d3ac8680d767b
hw/usb: Add U2F device autoscan to passthru mode

This patch adds an autoscan to let u2f-passthru choose the first U2F
device it finds.

The autoscan is performed using libudev with an enumeration of all the
hidraw devices present on the host.

The first device which happens to be a U2F device is taken to do the
passtru.

Signed-off-by: César Belley <cesar.belley@lse.epita.fr>
Message-id: 20200826114209.28821-13-cesar.belley@lse.epita.fr
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
docs/u2f.txt
hw/usb/meson.build
hw/usb/u2f-passthru.c