diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-12-23 02:21:21 +0100 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2018-12-24 18:15:28 -0800 |
commit | ac52b71b0c23c415eede3b8fef50831ae2fe01bc (patch) | |
tree | 41581dafc149481e81e4718114d8f280233ec8b8 /nitrokey-sys/libnitrokey-v3.4.1/libnitrokey/hidapi | |
parent | b7b9c6f3591e1ef28371d42229053b5368e79b7d (diff) | |
download | nitrocli-ac52b71b0c23c415eede3b8fef50831ae2fe01bc.tar.gz nitrocli-ac52b71b0c23c415eede3b8fef50831ae2fe01bc.tar.bz2 |
Implement the otp status subcommand
This patch introduces the `otp status` subcommand that lists all OTP
slots and their current status. To avoid hardcoding the number of slots
per type, we iterate all slots until we get an `InvalidSlot` error
(assuming that the set of valid slots is {0, ..., n} for some n). The
`status` command is quite slow as we have to query each slot separately.
Diffstat (limited to 'nitrokey-sys/libnitrokey-v3.4.1/libnitrokey/hidapi')
0 files changed, 0 insertions, 0 deletions