mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Extend --quick-set-expire to allow subkey expiration setting.
* g10/keyedit.c (keyedit_quick_set_expire): Add new arg subkeyfprs. (menu_expire): Rename arg force_mainkey to unattended and allow unattended changing of subkey expiration. * g10/gpg.c (main): Extend --quick-set-expire. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
e888f7af65
commit
b55b72bb81
4 changed files with 117 additions and 29 deletions
|
@ -4491,11 +4491,11 @@ main (int argc, char **argv)
|
|||
{
|
||||
const char *x_fpr, *x_expire;
|
||||
|
||||
if (argc != 2)
|
||||
wrong_args ("--quick-set-exipre FINGERPRINT EXPIRE");
|
||||
if (argc < 2)
|
||||
wrong_args ("--quick-set-exipre FINGERPRINT EXPIRE [SUBKEY-FPRS]");
|
||||
x_fpr = *argv++; argc--;
|
||||
x_expire = *argv++; argc--;
|
||||
keyedit_quick_set_expire (ctrl, x_fpr, x_expire);
|
||||
keyedit_quick_set_expire (ctrl, x_fpr, x_expire, argv);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue