mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
9da780e5c4
commit
30a011cfd6
3 changed files with 81 additions and 37 deletions
|
@ -3304,7 +3304,7 @@ keyedit_quick_addkey (ctrl_t ctrl, const char *fpr, const char *algostr,
|
|||
goto leave;
|
||||
}
|
||||
|
||||
/* Create the subkey. Noet that the called function already prints
|
||||
/* Create the subkey. Note that the called function already prints
|
||||
* an error message. */
|
||||
if (!generate_subkeypair (ctrl, keyblock, algostr, usagestr, expirestr))
|
||||
modified = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue