libgpgme and gpg genkey passphrase inquire

Ben Kibbey bjk at luxsci.net
Sat Apr 25 23:38:07 CEST 2015


On Tue, Apr 14, 2015 at 07:03:05PM -0400, Ben Kibbey wrote:
> Hello,
> 
> I'd like the ability to use a key-file as a passphrase when generating a
> new keypair. Attached are patches for both gpg and libgpgme. I'm not
> sure if the gpg patch will break anything since it implies --batch when
> --command-fd is set along with --gen-key. The gpgme patch just sets the
> passphrase command handler like the other gpgme crypto functions do.

I've created branches named "bjk/passphrase-inquire" for both gnupg and
gpgme and have been updated to make use of the INQUIRE_MAXLEN status
message.

One gotcha I noticed with the gpg patch is that --command-fd must be
specified before --gen-key but since it will probably only be used with
gpgme it wont matter much.

-- 
Ben Kibbey



More information about the Gnupg-devel mailing list