diff options
author | Werner Koch <[email protected]> | 2016-09-13 09:30:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-09-13 09:30:54 +0000 |
commit | 30a011cfd6ec172cc460e59f0904a26fe2d68632 (patch) | |
tree | 0b2689ae95b12ada71438570e903624889005591 /g10/keyedit.c | |
parent | tools: Minor fix to the usbmon debugging tool. (diff) | |
download | gnupg-30a011cfd6ec172cc460e59f0904a26fe2d68632.tar.gz gnupg-30a011cfd6ec172cc460e59f0904a26fe2d68632.zip |
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | g10/keyedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c index 4c833f855..baee1804f 100644 --- a/g10/keyedit.c +++ b/g10/keyedit.c @@ -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; |