mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
g10: Create expiring keys in quick key generation mode.
* doc/gpg.texi: Document that fact. * g10/keygen.c (quick_generate_keypair): Use a default value. * tests/openpgp/quick-key-manipulation.scm: Test that fact. GnuPG-bug-id: 2701 Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
429891a704
commit
dd3dde07a9
3 changed files with 22 additions and 17 deletions
|
@ -3957,6 +3957,8 @@ quick_generate_keypair (ctrl_t ctrl, const char *uid, const char *algostr,
|
|||
}
|
||||
}
|
||||
|
||||
if (!*expirestr || strcmp (expirestr, "-") == 0)
|
||||
expirestr = default_expiration_interval;
|
||||
|
||||
if ((!*algostr || !strcmp (algostr, "default")
|
||||
|| !strcmp (algostr, "future-default"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue