gpg: Improve usability of --quick-gen-key.
authorWerner Koch <wk@gnupg.org>
Tue, 13 Sep 2016 09:30:54 +0000 (11:30 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 13 Sep 2016 09:30:54 +0000 (11:30 +0200)
commit30a011cfd6ec172cc460e59f0904a26fe2d68632
tree0b2689ae95b12ada71438570e903624889005591
parent9da780e5c4b32ea81ba47bf36f17100d208b8b4f
gpg: Improve usability of --quick-gen-key.

* g10/keygen.c (FUTURE_STD_): New constants.
(parse_expire_string): Handle special keywords.
(parse_algo_usage_expire): Allow "future-default".  Simplify call to
parse_expire_string.
(quick_generate_keypair): Always allow an expiration date.  Replace
former "test-default" by "future-default".
--

Using an expiration date is pretty common, thus we now allow the
creation of a standard key with expiration date.

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