aboutsummaryrefslogtreecommitdiff
path: root/rand/src
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-25 21:07:07 +0100
committerDaniel Mueller <deso@posteo.net>2020-09-07 10:05:11 -0700
commit1f8e482cfebb13b64002d65e61e29932770388be (patch)
treeee3d4491b3997db9f385f98629a26c0c7a014878 /rand/src
parent03d04439323f60bc2f4371585ae21404dbcb7eeb (diff)
downloadnitrocli-1f8e482cfebb13b64002d65e61e29932770388be.tar.gz
nitrocli-1f8e482cfebb13b64002d65e61e29932770388be.tar.bz2
Refactor connection handling
This patch introduces two new functions, find_device and connect, to connect to a Nitrokey device. find_device queries the attached Nitrokey devices, applies the filters (currently only the --model option) and returns the first match. connect calls find_device and connects to the returned device. This refactoring allows us to add more device filters, for example a --serial-number option, without code duplication.
Diffstat (limited to 'rand/src')
0 files changed, 0 insertions, 0 deletions