gpg: Extend the --quick-gen-key command.
authorWerner Koch <wk@gnupg.org>
Thu, 2 Jun 2016 16:38:10 +0000 (18:38 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 2 Jun 2016 16:38:10 +0000 (18:38 +0200)
commit01285f909e43e8d6a48fbcc77bb5af53d567d8a2
treebd7d1824b299b989b8a88980ef8b98d35fb13bb8
parentdcc4cd83821667be22e502af86139bb4bd41bdf7
gpg: Extend the --quick-gen-key command.

* g10/keygen.c (quickgen_set_para): Add arg 'use'.
(quick_generate_keypair): Add args 'algostr', 'usagestr', and
'expirestr'.  Implement primary only key mode.
(parse_algo_usage_expire): Set NBITS for the default algo.
* g10/gpg.c (main): Extend --quick-gen-key command.

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/gpg.texi
g10/gpg.c
g10/keygen.c
g10/main.h