From 226123e8e60779ce9d01b49a2e116406c173bd3c Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 14 Jul 2019 13:59:08 +0000 Subject: Temporarily disable with_password_safe to fix compiler errors --- nitrocli/src/commands.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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. -- cgit v1.2.1