Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F34109696
fake-pinentry.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
844 B
Subscribers
None
fake-pinentry.sh
View Options
#!/bin/sh
# Use this for your test suites when a POSIX shell is available.
#
# The encrypted keys in your test suite that you expect to work must
# be locked with a passphrase of "passphrase"
#
# Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
#
# License: Creative Commons Zero ("Public Domain Dedication") --
# Anyone may reuse it, modify it, redistribute it for any purpose.
echo
"OK This is only for test suites, and should never be used in production"
while
read
cmd rest
;
do
cmd
=
$(
printf
"%s"
"
$cmd
"
|
tr
'A-Z'
'a-z'
)
if
[
-z
"
$cmd
"
]
;
then
continue
;
fi
case
"
$cmd
"
in
\#
*
)
;;
getpin
)
echo
"D passphrase"
echo
"OK"
;;
bye
)
echo
"OK"
exit
0
;;
*
)
echo
"OK"
;;
esac
done
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Dec 5, 4:39 AM (15 h, 42 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
57/3f/9b03e2b67db9c001003f0f0a94dc
Attached To
rG GnuPG
Event Timeline
Log In to Comment