aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nitrocli/src/commands.rs')
-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.