diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-12-30 18:37:37 +0100 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-01 17:14:47 -0800 |
commit | abcaafee042c6f2036b822e6f1c6c2683a526d92 (patch) | |
tree | 39bfdd2115eaa85bbed148c5876a18fa41febf80 /nitrocli/src/commands.rs | |
parent | ec298ea1fc7d2339ef44d283644d6ee2ebcd54bd (diff) | |
download | nitrocli-abcaafee042c6f2036b822e6f1c6c2683a526d92.tar.gz nitrocli-abcaafee042c6f2036b822e6f1c6c2683a526d92.tar.bz2 |
Add mode argument to pinentry::inquire_passphrase
The mode argument is used to specify the context of the pinentry dialog:
querying an existing passphrase or prompting the user to choose a new
PIN. It is used to choose a description and to decide whether to show a
quality bar that measures the password strength.
Diffstat (limited to 'nitrocli/src/commands.rs')
-rw-r--r-- | nitrocli/src/commands.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs index 47a955d..17c8c8c 100644 --- a/nitrocli/src/commands.rs +++ b/nitrocli/src/commands.rs @@ -131,7 +131,7 @@ where let mut retry = 3; let mut error_msg = None; loop { - let passphrase = match pinentry::inquire_passphrase(pin, error_msg) { + let passphrase = match pinentry::inquire_passphrase(pin, pinentry::Mode::Query, error_msg) { Ok(passphrase) => passphrase, Err(err) => return Err((data, err)), }; |