How do I flush a bad symmetric password from gpg-agent?

Daiki Ueno ueno at unixuser.org
Thu Aug 20 03:15:48 CEST 2009


>>>>> In <4A8C5344.4060701__17863.5451746688$1250713354$gmane$org at dougbarton.us> 
>>>>>	Doug Barton <dougb at dougbarton.us> wrote:
> >> Today I mis-typed a passphrase for a symmetrically encrypted file and
> >> was surprised to discover that gpg-agent had stored the bad passphrase
> >> and would not let me access the file. I have occasionally in the past
> > 
> > This is a new and probably not too well tested feature.  I'll check whey
> > this is going wrong.

> Fair enough, thanks.

That's my fault, sorry.  The attached patch should fix the problem.
Could you try it?

2009-08-20  Daiki Ueno  <ueno at unixuser.org>

	* mainproc.c (proc_encrypted): Clear passphrase cached with S2K
	cache ID if decryption failed.
	* passphrase.c (passphrase_to_dek_ext): Set dek->s2k_cacheid.
	* gpgv.c (passphrase_clear_cache): New stub.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: clear-symmetric-passphrase.diff
Type: text/x-diff
Size: 2761 bytes
Desc: not available
URL: </pipermail/attachments/20090820/34d9c496/attachment.diff>
-------------- next part --------------

Regards,
-- 
Daiki Ueno


More information about the Gnupg-users mailing list