aboutsummaryrefslogtreecommitdiff
path: root/nitrocli
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-05 16:04:49 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-05 16:04:49 -0800
commitd9adac05dfa5de83465fde3479df4fd898ebd8bd (patch)
tree3bcb5585b4f821250276d6bf1eadd05f1748d016 /nitrocli
parentbbb54f26c6101225a4f79f2f7f89cf5d71a62dd1 (diff)
downloadnitrocli-d9adac05dfa5de83465fde3479df4fd898ebd8bd.tar.gz
nitrocli-d9adac05dfa5de83465fde3479df4fd898ebd8bd.tar.bz2
Update nitrokey crate to 0.3.0
This change updates the nitrokey crate to version 0.3.0. Import subrepo nitrokey/:nitrokey at 3593df8844b80741e2d33c8e5af80e65760dc058
Diffstat (limited to 'nitrocli')
-rw-r--r--nitrocli/CHANGELOG.md1
-rw-r--r--nitrocli/Cargo.lock4
-rw-r--r--nitrocli/Cargo.toml2
-rw-r--r--nitrocli/src/commands.rs11
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