summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-07-14 13:59:08 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-07-14 16:09:08 +0200
commit226123e8e60779ce9d01b49a2e116406c173bd3c (patch)
treea0a6f7f467fbeaa45e6b5d6293309035ef8ef8a0
parent0e1942a6ca93aa3ab1b93778915320a055bb7744 (diff)
downloadnitrocli-nitrokey-0.4.tar.gz
nitrocli-nitrokey-0.4.tar.bz2
Temporarily disable with_password_safe to fix compiler errorsnitrokey-0.4
-rw-r--r--nitrocli/src/commands.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs
index 260774a..6559bb0 100644
--- a/nitrocli/src/commands.rs
+++ b/nitrocli/src/commands.rs
@@ -92,11 +92,16 @@ where
op(ctx, device)
}
-fn with_password_safe<'dev, D, F>(ctx: &mut args::ExecCtx<'_>, device: &mut D, op: F) -> Result<()>
+fn with_password_safe<'dev, D, F>(
+ _ctx: &mut args::ExecCtx<'_>,
+ _device: &mut D,
+ _op: F,
+) -> Result<()>
where
D: Device<'dev>,
F: FnOnce(&mut args::ExecCtx<'_>, nitrokey::PasswordSafe<'_, '_>) -> Result<()>,
{
+ /*
let pin_entry = pinentry::PinEntry::from(pinentry::PinType::User, device)?;
let pws = try_with_pin_and_data(
ctx,
@@ -106,6 +111,8 @@ where
|_, pin| device.get_password_safe(pin).map_err(|err| ((), err)),
)?;
op(ctx, pws)
+ */
+ Err(Error::Error("PWS unsupported".to_string()))
}
/// Authenticate the given device using the given PIN type and operation.