From abcaafee042c6f2036b822e6f1c6c2683a526d92 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 30 Dec 2018 18:37:37 +0100 Subject: 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. --- nitrocli/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nitrocli/src/commands.rs') 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)), }; -- cgit v1.2.1