diff options
author | César Belley <cesar.belley@lse.epita.fr> | 2020-08-26 13:42:08 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-08-31 08:23:39 +0200 |
commit | 4ee40a6b98c02b72fc5dd262df9d3ac8680d767b (patch) | |
tree | c1d100db86b90999dcb09734b220e227bde7060c /hw/usb/hcd-dwc2.c | |
parent | dea01f66811b6963f306a7dcffe001fb4637662f (diff) | |
download | qemu-4ee40a6b98c02b72fc5dd262df9d3ac8680d767b.zip qemu-4ee40a6b98c02b72fc5dd262df9d3ac8680d767b.tar.gz qemu-4ee40a6b98c02b72fc5dd262df9d3ac8680d767b.tar.bz2 |
hw/usb: Add U2F device check to passthru mode
This patchs adds a check to verify that the device passed through the
hidraw property is a U2F device.
The check is done by ensuring that the first values of the report
descriptor (USAGE PAGE and USAGE) correspond to those of a U2F device.
Signed-off-by: César Belley <cesar.belley@lse.epita.fr>
Message-id: 20200826114209.28821-12-cesar.belley@lse.epita.fr
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/hcd-dwc2.c')
0 files changed, 0 insertions, 0 deletions