From 604e09e6ae098350bffe18bde26e1c62f7e88a00 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 2 Mar 2021 22:13:21 -0500 Subject: make the pinentry program configurable --- src/pinentry.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pinentry.rs') 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 { - 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 { -- cgit v1.2.3-54-g00ecf