From 1e426e352433fc68bb69fbb45491d27868cfc007 Mon Sep 17 00:00:00 2001 From: Todd Schulman Date: Sun, 31 Dec 2023 13:30:38 -0500 Subject: [PATCH 1/2] pinentry.ksh: add a timeout to pinentry-mac --- Applite/Resources/pinentry.ksh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applite/Resources/pinentry.ksh b/Applite/Resources/pinentry.ksh index 6940cee..b8e15b0 100755 --- a/Applite/Resources/pinentry.ksh +++ b/Applite/Resources/pinentry.ksh @@ -4,4 +4,4 @@ typeset PATH="/opt/homebrew/bin:/usr/local/bin:${HOME}/Library/Application Support/Applite/homebrew/bin:${PATH}" # Prompt user for password and return it -printf "%s\n" "SETOK OK" "SETCANCEL Cancel" "SETDESC Applite needs your admin password to complete the task" "SETPROMPT Enter Password:" "SETTITLE Applite Password Request" "GETPIN" | /usr/bin/env pinentry-mac --no-global-grab | /usr/bin/awk '/^D / {print substr($0, index($0, $2))}' +printf "%s\n" "SETOK OK" "SETCANCEL Cancel" "SETDESC Applite needs your admin password to complete the task" "SETPROMPT Enter Password:" "SETTITLE Applite Password Request" "GETPIN" | /usr/bin/env pinentry-mac --no-global-grab --timeout 60 | /usr/bin/awk '/^D / {print substr($0, index($0, $2))}' From 9a3c1e06528d0cd0eb757afe34cffb5e4f0841c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1rady=20Mil=C3=A1n?= <61704770+MilanVarady@users.noreply.github.com> Date: Mon, 1 Jan 2024 16:17:26 +0100 Subject: [PATCH 2/2] Update pinentry.ksh hash --- Applite/Utilities/Shell/PinentryScriptHash.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applite/Utilities/Shell/PinentryScriptHash.swift b/Applite/Utilities/Shell/PinentryScriptHash.swift index ee86a3e..4059fd1 100644 --- a/Applite/Utilities/Shell/PinentryScriptHash.swift +++ b/Applite/Utilities/Shell/PinentryScriptHash.swift @@ -8,4 +8,4 @@ import Foundation /// MD5 hash of the pinentry.ksh file -let pinentryScriptHash = "xEAHWuD1eAqgO7XO+/cfmg==" +let pinentryScriptHash = "AnfcWA+MzXeqGOc3oQHu0Q=="