summaryrefslogtreecommitdiffstats
path: root/g10/call-agent.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-01-21 11:31:20 +0100
committerWerner Koch <wk@gnupg.org>2015-01-21 11:31:20 +0100
commitaa99ebde778b7b563f35025f1b48954757f840be (patch)
treec29ce1eb80ae1bd3313f243ba95da5b5f891f968 /g10/call-agent.h
parentartwork: Crop and rename the commonly used logo. (diff)
downloadgnupg2-aa99ebde778b7b563f35025f1b48954757f840be.tar.xz
gnupg2-aa99ebde778b7b563f35025f1b48954757f840be.zip
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>
Diffstat (limited to 'g10/call-agent.h')
-rw-r--r--g10/call-agent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h
index bcb5ae9f5..9c104e88e 100644
--- a/g10/call-agent.h
+++ b/g10/call-agent.h
@@ -154,6 +154,7 @@ gpg_error_t agent_get_keyinfo (ctrl_t ctrl, const char *hexkeygrip,
/* Generate a new key. */
gpg_error_t agent_genkey (ctrl_t ctrl, char **cache_nonce_addr,
const char *keyparms, int no_protection,
+ const char *passphrase,
gcry_sexp_t *r_pubkey);
/* Read a public key. */