diff options
author | Werner Koch <[email protected]> | 2014-09-27 13:14:13 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-09-27 13:14:13 +0000 |
commit | f3625bb018fa8d5bc754f982996f8788386f0a9d (patch) | |
tree | 113515152d04891d29180ef1ecab459b27a2a1c1 /g10/card-util.c | |
parent | doc: Update the file OpenPGP (diff) | |
download | gnupg-f3625bb018fa8d5bc754f982996f8788386f0a9d.tar.gz gnupg-f3625bb018fa8d5bc754f982996f8788386f0a9d.zip |
gpg: Simplify command --gen-key and add --full-gen-key.
* g10/gpg.c (aFullKeygen): New.
(opts): Add command --full-key-gen.
(main): Implement it.
* g10/keygen.c (DEFAULT_STD_ALGO): Replace wrong GCRY_PK_RSA although
the value is identical.
(DEFAULT_STD_CURVE): New.
(DEFAULT_STD_SUBALGO): New.
(DEFAULT_STD_SUBKEYSIZE): New.
(DEFAULT_STD_SUBCURVE): New.
(quick_generate_keypair): Use new macros here.
(generate_keypair): Add arg "full" and fix call callers. Do not ask
for keysize in non-full node.
(ask_user_id): Add arg "full" and simplify for non-full mode.
Diffstat (limited to '')
-rw-r--r-- | g10/card-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/card-util.c b/g10/card-util.c index 84752eb0b..abf234f83 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -1440,7 +1440,7 @@ generate_card_keys (ctrl_t ctrl) the serialnumber and thus it won't harm. */ } - generate_keypair (ctrl, NULL, info.serialno, want_backup); + generate_keypair (ctrl, 1, NULL, info.serialno, want_backup); leave: agent_release_card_info (&info); |