gpg: Simplify command --gen-key and add --full-gen-key.
authorWerner Koch <wk@gnupg.org>
Sat, 27 Sep 2014 13:14:13 +0000 (15:14 +0200)
committerWerner Koch <wk@gnupg.org>
Sat, 27 Sep 2014 13:14:13 +0000 (15:14 +0200)
commitf3625bb018fa8d5bc754f982996f8788386f0a9d
tree113515152d04891d29180ef1ecab459b27a2a1c1
parentf16e76cfb8a1c872d1e01332b5d32022aa7b2fe8
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.
doc/gpg.texi
g10/card-util.c
g10/gpg.c
g10/keygen.c
g10/main.h