aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Add support for erase_hotp_slot and erase_totp_slotRobin Krahl2018-05-22
|
* Correct invalid slot handlingRobin Krahl2018-05-22
| | | | | | | | | | | While the Nitrokey device would generate a WrongSlot error, libnitrokey catches these errors and raises an InvalidSlotException with error code 201. This patch matches this error code to CommandError::InvalidSlot, corrects the documentation and adds test cases. To be able to test a failing OTP generation command, we have to adapt get_string_result to free the string only if successful. This is due to the segfault issue in libnitrokey v3.3 (see todo list).
* Refactor test casesRobin Krahl2018-05-21
|
* Re-add segmentation fault issues to todo listRobin Krahl2018-05-21
| | | | | | I removed the segfault note in the todo list when moving to libnitrokey v3.3. Yet the commit fixing this issue -- 7a8550d -- is not part of that version.
* Add documentation link to Cargo.tomlRobin Krahl2018-05-21
|
* Remove get_major_firmware_version reference in readmeRobin Krahl2018-05-21
| | | | | | The problem with get_major_firmware_version is fixed as we now use libnitrokey v3.3. Therefore the corresponding section in the readme can be removed.
* Release v0.1.1v0.1.1Robin Krahl2018-05-21
|
* Use NK_login_enum instead of NK_loginRobin Krahl2018-05-21
| | | | | | NK_login used a string to identify the model to connect to. Since libnitrokey v3.3, we can use NK_login_enum together with an enum value as a more type-safe alternative.
* Add get_minor_firmware_version to DeviceRobin Krahl2018-05-21
| | | | Since libnitrokey v3.3, we can also access the minor firmware version.
* Update nitrokey-sys dependency to v3.3.0Robin Krahl2018-05-21
| | | | | | | Now libnitrokey v3.3 is compiled from source, fixing the problems with older libnitrokey versions (freeing strings, firmware version getter). Also, bindgen is no longer a build dependency. This makes the build process a lot faster.
* Remove nitrokey-sys crateRobin Krahl2018-05-21
| | | | | The nitrokey-sys crate now has its own Git repository at https://git.ireas.org/nitrokey-sys-rs/ to make maintenance easier.
* Add README.md to Cargo.tomlRobin Krahl2018-05-19
| | | | Add the readme to Cargo.toml so that it is displayed on crates.io.
* Add a version to the nitrokey-sys dependencyv0.1.0Robin Krahl2018-05-19
|
* Add libc dependency for nitrokey-sysRobin Krahl2018-05-19
|
* Initial commitRobin Krahl2018-05-19