Skip to content

Commit

Permalink
Merge pull request #47 from toobuntu/pinentry
Browse files Browse the repository at this point in the history
pinentry.ksh: add a timeout to pinentry-mac
  • Loading branch information
milanvarady authored Jan 1, 2024
2 parents d93dc9c + 9a3c1e0 commit b94de93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Applite/Resources/pinentry.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -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))}'
2 changes: 1 addition & 1 deletion Applite/Utilities/Shell/PinentryScriptHash.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
import Foundation

/// MD5 hash of the pinentry.ksh file
let pinentryScriptHash = "xEAHWuD1eAqgO7XO+/cfmg=="
let pinentryScriptHash = "AnfcWA+MzXeqGOc3oQHu0Q=="

0 comments on commit b94de93

Please sign in to comment.