[PATCH] unify passphrase-repeat logic into gpg-agent
Daiki Ueno
ueno at unixuser.org
Tue Mar 17 09:37:09 CET 2009
Hi,
I noticed that the function passphrase_to_dek (in g10/passphrase.c)
repeats the passphrase prompt by itself, even though for other usage
(such as key generation) gpgv2 leaves gpg-agent to do that job. I think
that it is consistent with gpg-agent to handle any case where
passphrase-repeat is needed.
The attached patch moves the implementation of the logic from
passphrase_to_dek to gpg-agent.
This should not change the current behavior, but it will make it easier
to implement the symenc passphrase-caching which I recently proposed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpg-agent-passphrase-repeat.diff
Type: text/x-diff
Size: 9099 bytes
Desc: not available
URL: </pipermail/attachments/20090317/fb3d0868/attachment.diff>
-------------- next part --------------
Regards,
--
Daiki Ueno
More information about the Gnupg-devel
mailing list