gpg: Re-enable the "Passphrase" parameter for batch key generation.
authorWerner Koch <wk@gnupg.org>
Wed, 21 Jan 2015 10:31:20 +0000 (11:31 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 21 Jan 2015 10:31:20 +0000 (11:31 +0100)
commitaa99ebde778b7b563f35025f1b48954757f840be
treec29ce1eb80ae1bd3313f243ba95da5b5f891f968
parent2a8fe0448d418a54540a2af834647df6254f682a
gpg: Re-enable the "Passphrase" parameter for batch key generation.

* agent/command.c (cmd_genkey): Add option --inq-passwd.
* agent/genkey.c (agent_genkey): Add new arg override_passphrase.
* g10/call-agent.c (inq_genkey_parms): Handle NEWPASSWD keyword.
(agent_genkey): Add arg optional arg "passphrase".
* g10/keygen.c (common_gen, gen_elg, gen_dsa, gen_ecc)
(gen_rsa, do_create): Add arg "passphrase" and pass it through.
(do_generate_keypair): Make use of pPASSPHRASE.
(release_parameter_list): Wipe out a passphrase parameter.

Signed-off-by: Werner Koch <wk@gnupg.org>
NEWS
agent/agent.h
agent/command.c
agent/genkey.c
doc/gpg-agent.texi
doc/gpg.texi
g10/call-agent.c
g10/call-agent.h
g10/keygen.c