gpg-agent+pinentry doesn't work

Sebastian Seifert lathander@gmx.de
Tue Sep 23 09:47:02 2003


Hi there,

I'm trying to use the Aegypten crypto plugins with Kmail for OpenPGP/MIME.
I have installed unstable debian packages for gpgsm, pinentry-qt, ... from
http://a2geo.mathematik.uni-karlsruhe.de/public-debian/, following a spanish
howto (which is very similar to the one on the kmail site, but points out the
debian repository), and I have setup ~/.gnupg/gpg.conf and ~/.gnupg/
gpg-agent.conf to use the gpg-agent with pinentry-qt.

The gpg-agent seems to start correctly, and the environment variable
$GPG_AGENT_INFO is set to its socket and pid.

When I test the gpg-agent with the command gpg -d sometext.txt.asc,
no pinentry window opens, and after a moment, gpg prints "gpg: problem with
the agent - disabling agent use". gpg-agent outputs "gpg-agent[26278]:
command get_passphrase failed: ec=-1". The DISPLAY variable is correctly set 
and I can usually start X applications from a shell.

A strace of the gpg-agent's communication with pinentry-qt shows that
pinentry-qt responds to the GET_PASSPHRASE command with "ERR 116 no data
available\n":

connect(9, {sa_family=AF_UNIX, path="/tmp/gpg-8zVGHa/S.gpg-agent"}, 30) = 0
read(9, "OK Your orders please\n", 200) = 22
write(9, "OPTION display=:0.0\n", 20)   = 20
read(9, "OK\n", 199)                    = 3
write(9, "OPTION ttyname=/dev/tty\n", 24) = 24
read(9, "OK\n", 199)                    = 3
write(9, "OPTION ttytype=xterm-debian\n", 28) = 28
read(9, "OK\n", 199)                    = 3
write(9, "OPTION lc-ctype=C\n", 18)     = 18
read(9, "OK\n", 199)                    = 3
write(9, "OPTION lc-messages=C\n", 21)  = 21
read(9, "OK\n", 199)                    = 3
gettimeofday({1064159224, 953806}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 10000}, ru_stime={0, 0}, ...}) = 0
time(NULL)                              = 1064159224
times({tms_utime=1, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 2600475
write(9, "GET_PASSPHRASE DBFBE4C7B6A95410C"..., 234) = 234
read(9, "ERR 116 no data available\n", 499) = 26

Can anyone tell me the meaning of that error? 

Sebastian


--
Work is the curse of the drinking classes.
	--Oscar Wilde