diff options
author | Daniel Mueller <deso@posteo.net> | 2017-03-26 17:31:28 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2017-03-26 17:31:28 -0700 |
commit | de5ae8656387267bb4614bbab6b62784323f23c0 (patch) | |
tree | 7be8d72b26b0ae355d5e157c2f36ccb30d6fa347 /libc/src/unix/notbsd/linux/other/b64/x86_64.rs | |
parent | cd6e41862cea59ec306e7c9c578270575eb2a73b (diff) | |
download | nitrocli-de5ae8656387267bb4614bbab6b62784323f23c0.tar.gz nitrocli-de5ae8656387267bb4614bbab6b62784323f23c0.tar.bz2 |
Discover and open nictrokey using libhidapi
This change uses the 'hid' crate to discover and open the Nitrokey
Storage device. 'hid' is a wrapper around libhidapi (its libusb back-end
in particular).
Being a command line application some sort of parameter handling needs
to happen. The approach we take is very simple for now to minimize the
number of dependencies: we just compare the first argument against the
expected ones and raise an error if no match was found. Because we only
have positional arguments right now this is all we need.
Diffstat (limited to 'libc/src/unix/notbsd/linux/other/b64/x86_64.rs')
0 files changed, 0 insertions, 0 deletions