aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/CHANGELOG.md
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-12-11 23:51:01 +0100
committerDaniel Mueller <deso@posteo.net>2018-12-17 07:52:13 -0800
commit4d314264a897c474c12e626a2be36b75dc57f5c9 (patch)
tree11385b55f271a2b95d2d632ad1a2107180be5c3a /nitrocli/CHANGELOG.md
parent986ad2f782cf944990e4eda8bf88ea1821233302 (diff)
downloadnitrocli-4d314264a897c474c12e626a2be36b75dc57f5c9.tar.gz
nitrocli-4d314264a897c474c12e626a2be36b75dc57f5c9.tar.bz2
Port the open and close commands to libnitrokey
This patch removes the raw hidapi implementations of the Enable Encrypted Volume and Disable Encrypted Volume commands and replaces them with the methods enable_encrypted_volume and disable_encrypted_volume of the Storage struct provided by the nitrokey trait. To provide some context to the error messages, the errors are wrapped using the map_err method of the Result enum and the get_error function that combines a nitrokey error code and a string into a nitrocli error. It would be more idiomatic to define a conversion from a nitrokey error to a nitrocli error, but then we would lose information about the context of the error.
Diffstat (limited to 'nitrocli/CHANGELOG.md')
-rw-r--r--nitrocli/CHANGELOG.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/nitrocli/CHANGELOG.md b/nitrocli/CHANGELOG.md
index bfe1ffa..7ff193a 100644
--- a/nitrocli/CHANGELOG.md
+++ b/nitrocli/CHANGELOG.md
@@ -1,7 +1,10 @@
Unreleased
----------
-- Added `nitrokey` version `0.2.1` as a direct dependency and `nitrokey-sys`
- version `3.4.1` as well as `rand` version `0.4.3` as indirect dependencies
+- Use the `nitrokey` crate for the `open` and `close` commands instead
+ of directly communicating with the Nitrokey device
+ - Added `nitrokey` version `0.2.1` as a direct dependency and
+ `nitrokey-sys` version `3.4.1` as well as `rand` version `0.4.3` as
+ indirect dependencies
0.1.3