summary refs log tree commit diff
path: root/bin/askpass
blob: 95a17eca5062af7ca816246cd31b3af6af60beb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

desc=${ASKPASS_DESC:-Authenticating as \"$(id -un)\" <uid $(id -u)>}
prompt=${ASKPASS_PROMPT:-Password}

cat <<-EOF | ${PINENTRY:-pinentry} 2>/dev/null | awk '/D./{ print $2; }'
	SETTIMEOUT 30
	SETDESC ${desc}
	SETPROMPT ${prompt}
	SETTITLE askpass
	GETPIN
EOF