summaryrefslogtreecommitdiffstats
path: root/sq/src/sq.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2022-09-08 17:49:08 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2022-09-29 20:10:57 +0200
commit7936e3513ee339650a7ac2eff11edd2fac3f037d (patch)
treef57c47e23b8781d0690c8b39f9b9917e1f19edea /sq/src/sq.rs
parentf89695585459799981d83c0b6eecb13511490e56 (diff)
openpgp, sq: Update dependency rpassword to 6.
- rpassword underwent some rework. The successor of read_password_from_tty seems to be prompt_password, relevant commits to rpassword: - e6023757df00a67a1e16796db50c5ffad41b6268 - 2edf6cee07573ec4aa86531e6177ee90331d5c60
Diffstat (limited to 'sq/src/sq.rs')
-rw-r--r--sq/src/sq.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/sq/src/sq.rs b/sq/src/sq.rs
index 7ea299a8..f96b32cd 100644
--- a/sq/src/sq.rs
+++ b/sq/src/sq.rs
@@ -238,12 +238,11 @@ fn decrypt_key<R>(key: Key<key::SecretParts, R>, passwords: &mut Vec<String>)
let mut first = true;
loop {
// Prompt the user.
- match rpassword::read_password_from_tty(
- Some(&format!(
- "{}Enter password to unlock {} (blank to skip): ",
- if first { "" } else { "Invalid password. " },
- key.keyid().to_hex())))
- {
+ match rpassword::prompt_password(&format!(
+ "{}Enter password to unlock {} (blank to skip): ",
+ if first { "" } else { "Invalid password. " },
+ key.keyid().to_hex()
+ )) {
Ok(p) => {
first = false;
if p.is_empty() {