diff options
| author | Robin Krahl <robin.krahl@ireas.org> | 2020-01-25 21:07:07 +0100 |
|---|---|---|
| committer | Daniel Mueller <deso@posteo.net> | 2020-09-07 10:05:11 -0700 |
| commit | 1f8e482cfebb13b64002d65e61e29932770388be (patch) | |
| tree | ee3d4491b3997db9f385f98629a26c0c7a014878 /Cargo.lock.license | |
| parent | 03d04439323f60bc2f4371585ae21404dbcb7eeb (diff) | |
| download | nitrocli-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 'Cargo.lock.license')
0 files changed, 0 insertions, 0 deletions
