diff options
Diffstat (limited to 'nitrocli')
-rw-r--r-- | nitrocli/CHANGELOG.md | 1 | ||||
-rw-r--r-- | nitrocli/Cargo.lock | 4 | ||||
-rw-r--r-- | nitrocli/Cargo.toml | 2 | ||||
-rw-r--r-- | nitrocli/src/commands.rs | 11 |
4 files changed, 11 insertions, 7 deletions
diff --git a/nitrocli/CHANGELOG.md b/nitrocli/CHANGELOG.md index 41cfd91..e32123e 100644 --- a/nitrocli/CHANGELOG.md +++ b/nitrocli/CHANGELOG.md @@ -3,6 +3,7 @@ Unreleased - Added the `-v`/`--verbose` option to control libnitrokey log level - Added the `-m`/`--model` option to restrict connections to a device model +- Bumped `nitrokey` dependency to `0.3.0` 0.2.1 diff --git a/nitrocli/Cargo.lock b/nitrocli/Cargo.lock index 01f74f4..5308712 100644 --- a/nitrocli/Cargo.lock +++ b/nitrocli/Cargo.lock @@ -55,12 +55,12 @@ version = "0.2.1" dependencies = [ "argparse 0.2.2", "libc 0.2.45", - "nitrokey 0.2.3", + "nitrokey 0.3.0", ] [[package]] name = "nitrokey" -version = "0.2.3" +version = "0.3.0" dependencies = [ "libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)", "nitrokey-sys 3.4.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/nitrocli/Cargo.toml b/nitrocli/Cargo.toml index 9c1bc23..0fc6482 100644 --- a/nitrocli/Cargo.toml +++ b/nitrocli/Cargo.toml @@ -50,7 +50,7 @@ version = "0.2" path = "../libc" [dependencies.nitrokey] -version = "0.2.1" +version = "0.3" path = "../nitrokey" diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs index e125f17..ac2bbf1 100644 --- a/nitrocli/src/commands.rs +++ b/nitrocli/src/commands.rs @@ -411,10 +411,13 @@ pub fn otp_get( let device = get_device(ctx)?; if algorithm == args::OtpAlgorithm::Totp { device - .set_time(match time { - Some(time) => time, - None => get_unix_timestamp()?, - }) + .set_time( + match time { + Some(time) => time, + None => get_unix_timestamp()?, + }, + true, + ) .map_err(|err| get_error("Could not set time", err))?; } let config = device |