aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/src/pinentry.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-20 09:26:11 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-20 09:26:11 -0800
commitc3f1761ae147e562ec3565c7ba8a9cb1834759c2 (patch)
treefd272c279a41c30cf1585dc917f960751aabd3bb /nitrocli/src/pinentry.rs
parent6c54316bd512a1ad365f5c1e2cb17e7e53ea193c (diff)
downloadnitrocli-c3f1761ae147e562ec3565c7ba8a9cb1834759c2.tar.gz
nitrocli-c3f1761ae147e562ec3565c7ba8a9cb1834759c2.tar.bz2
Implement storage hidden subcommand
With this change we implement the storage hidden subcommand. We support creation, opening, and closing of hidden volumes. Note that the opening of a hidden volume automatically closes any opened encrypted volumes and vice versa. To that end, we force file system level caches to disk even from the storage open and storage hidden open commands.
Diffstat (limited to 'nitrocli/src/pinentry.rs')
-rw-r--r--nitrocli/src/pinentry.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/nitrocli/src/pinentry.rs b/nitrocli/src/pinentry.rs
index f8606ed..8370328 100644
--- a/nitrocli/src/pinentry.rs
+++ b/nitrocli/src/pinentry.rs
@@ -122,14 +122,12 @@ impl SecretEntry for PinEntry {
}
#[derive(Debug)]
-#[allow(unused)]
pub struct PwdEntry {
model: nitrokey::Model,
serial: String,
}
impl PwdEntry {
- #[allow(unused)]
pub fn from<D>(device: &D) -> crate::Result<Self>
where
D: nitrokey::Device,