diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-02 22:13:21 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-02 22:13:21 -0500 |
commit | 604e09e6ae098350bffe18bde26e1c62f7e88a00 (patch) | |
tree | ed40c95a683fa200b11dc3f19accca7eee48ccd5 /src/pinentry.rs | |
parent | d149a01bffd2bfdd16e471c8be55f7760c70dd69 (diff) | |
download | rbw-604e09e6ae098350bffe18bde26e1c62f7e88a00.tar.gz rbw-604e09e6ae098350bffe18bde26e1c62f7e88a00.zip |
make the pinentry program configurable
Diffstat (limited to 'src/pinentry.rs')
-rw-r--r-- | src/pinentry.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pinentry.rs b/src/pinentry.rs index 69bf92c..9711585 100644 --- a/src/pinentry.rs +++ b/src/pinentry.rs @@ -3,12 +3,13 @@ use crate::prelude::*; use tokio::io::AsyncWriteExt as _; pub async fn getpin( + pinentry: &str, prompt: &str, desc: &str, err: Option<&str>, tty: Option<&str>, ) -> Result<crate::locked::Password> { - let mut opts = tokio::process::Command::new("pinentry"); + let mut opts = tokio::process::Command::new(pinentry); opts.stdin(std::process::Stdio::piped()) .stdout(std::process::Stdio::piped()); if let Some(tty) = tty { |