[GnuPG-users] gpg-agent ignores preset passphrase
    Kiss Gabor (Bitman) 
    kissg at ssg.ki.iif.hu
       
    Wed Aug 27 13:38:17 CEST 2008
    
    
  
> > I tried to use "preset passphrase" feature but it does not work.
> > Log shows that gpg-agent seemingly receives passphrase but later
> > when agent should use the cached passphrase it ask for it again
> > from pinentry.
> Now I started to debug gpg-agent.
> I.e. "miss" is changed to "hit". However a new pinentry popup window
> appears yet.
> 
> Putting some additional log_debug() statements in the code I found that
> the critical part is function findkey.c:unprotect().
> It retrieves cached passphrase successfully but a few lines below
> it calls agent_askpin() unconditionally.
> 
> Why does this happen? Could somebody explain me?
> And how should I use gpg-preset-passphrase?
Just for the archive:
I found a bug in gpg-agent. Since July 2006 gpg-preset-passphrases sends
passphrase as a hexstring but gpg-agent does not convert it back to
plaintext.
Now gpgme + gpg-agent + gpg-preset-passphrase works very well for me.
Details and patch are posted to gnupg-devel list.
http://lists.gnupg.org/pipermail/gnupg-devel/2008-August/024559.html
Gabor
    
    
More information about the Gnupg-users
mailing list