| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch updates libnitrokey from version 3.5 to version 3.6, causing
these changes:
- New constants:
- `NK_device_model_NK_LIBREM` (`NK_device_model` enum)
- New structures:
- `NK_config`
- New functions:
- `NK_device_serial_number_as_u32`
- `NK_write_config_struct`
- `NK_free_config`
- `NK_read_config_struct`
- `NK_free_password_safe_slot_status`
- Deprecated functions:
- `NK_set_unencrypted_read_only`
- `NK_set_unencrypted_read_write`
|
|
|
|
|
|
|
|
| |
Previously, we implemented the std::string::ToString trait for the
Version enum in build.rs for converting the libnitrokey version number
to a string. This patch replaces this implementation with an
implementation of the std::fmt::Display trait, which automatically
generates a ToString implementation and is more idiomatic.
|
|
|
|
|
|
|
|
| |
This patch adds the --with-derive-default option to the bindgen
invocation so that it derives Default implementations for all
libnitrokey structs. This allows us to simplify code in nitrokey-rs,
for example the initialization of structs that are used in nitrokey-sys
functions with output parameters.
|
| |
|
|
|
|
|
|
| |
nitrokey-sys currently contains two deprecated functions: `NK_status`
and `NK_totp_get_time`. This patch adds Rust’s `deprecated` attribute
to the functions.
|
|
|
|
|
| |
This patch updates libnitrokey from version 3.4.1 to version 3.5 and
lists all API changes in the changelog.
|
| |
|
|
|
|
|
|
|
| |
This patch introduces the USE_SYSTEM_LIBNITROKEY environment variable.
If it is set when compiling, the nitrokey-sys crate will not try to
build libnitrokey from source but instead uses the system libnitrokey
version.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
According to the hidapi README [0], only Linux provides two different
hidapi backends. Therefore this patch changes the build script to
default to linking to hidapi on non-Linux systems.
This patch fixes the macOS build issue reported by Philippe Normand and
is based on the patch proposed by Philippe Normand at [1].
[0] https://github.com/signal11/hidapi/blob/master/README.txt
[1] https://github.com/d-e-s-o/nitrocli/pull/42
|
|
|
|
|
|
| |
Based on the patch proposed by Philippe Normand at [0].
[0] https://github.com/d-e-s-o/nitrocli/pull/42
|
|
|
|
| |
In libinitrokey v3.4.1, there are no changes affecting this crate.
|
|
|
|
|
|
| |
Besides the changes listed in the changelog, this patch also changes the
build system to be able to generate the version.cc file containing the
library version.
|
| |
|
|
|