aboutsummaryrefslogtreecommitdiff
path: root/rand
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-12-23 02:21:21 +0100
committerDaniel Mueller <deso@posteo.net>2018-12-24 18:15:28 -0800
commitac52b71b0c23c415eede3b8fef50831ae2fe01bc (patch)
tree41581dafc149481e81e4718114d8f280233ec8b8 /rand
parentb7b9c6f3591e1ef28371d42229053b5368e79b7d (diff)
downloadnitrocli-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 'rand')
0 files changed, 0 insertions, 0 deletions