aboutsummaryrefslogtreecommitdiff
path: root/syn/src/gen_helper.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-14 20:01:28 +0100
committerDaniel Mueller <deso@posteo.net>2020-01-15 12:08:15 -0800
commit85ad47d13615d2ab6ed1124272cec7d33517dac1 (patch)
tree8aabb0fee21a9657850b45b31d3d771dddab8552 /syn/src/gen_helper.rs
parenta9af2d4295c1c0467ffd65a264559c7b4fe38d11 (diff)
downloadnitrocli-85ad47d13615d2ab6ed1124272cec7d33517dac1.tar.gz
nitrocli-85ad47d13615d2ab6ed1124272cec7d33517dac1.tar.bz2
Implement list command
This patch implements the list command that lists all attached Nitrokey devices. Currently the Nitrokey Storage does not report its serial number during HID enumeration, see [0]. So if we detect a Nitrokey Storage device, we connect to it and use the get_serial_number function to query its serial number. This can be disabled using the --no-connect option. Note that even the get_serial_number function reports a wrong serial number for the Nitrokey Storage, see [1]. [0] https://github.com/Nitrokey/nitrokey-storage-firmware/issues/88 [1] https://github.com/Nitrokey/nitrokey-storage-firmware/issues/76
Diffstat (limited to 'syn/src/gen_helper.rs')
0 files changed, 0 insertions, 0 deletions