diff options
Diffstat (limited to 'nitrocli/src/commands.rs')
-rw-r--r-- | nitrocli/src/commands.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs index 17c8c8c..7f25415 100644 --- a/nitrocli/src/commands.rs +++ b/nitrocli/src/commands.rs @@ -275,13 +275,6 @@ pub fn storage_status() -> Result<()> { Ok(()) } -/// Clear the PIN stored when opening the nitrokey's encrypted volume. -pub fn clear() -> Result<()> { - pinentry::clear_passphrase(pinentry::PinType::Admin)?; - pinentry::clear_passphrase(pinentry::PinType::User)?; - Ok(()) -} - /// Return a String representation of the given Option. fn format_option<T: fmt::Display>(option: Option<T>) -> String { match option { @@ -474,6 +467,13 @@ pub fn otp_status(all: bool) -> Result<()> { Ok(()) } +/// Clear the PIN stored by various operations. +pub fn pin_clear() -> Result<()> { + pinentry::clear_passphrase(pinentry::PinType::Admin)?; + pinentry::clear_passphrase(pinentry::PinType::User)?; + Ok(()) +} + #[cfg(test)] mod tests { use super::*; |