mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: New option --force-sign-key
* g10/gpg.c (oForceSignKey,opts): New option "--force-sign-key". (main): Set it. * g10/options.h (opt): New flag flags.force_sign_key. * g10/keyedit.c (sign_uids): Use new flag. -- GnuPG-bug-id: 4584
This commit is contained in:
parent
b9c560e3a4
commit
fe02ef0450
4 changed files with 32 additions and 14 deletions
|
@ -751,10 +751,11 @@ sign_uids (ctrl_t ctrl, estream_t fp,
|
|||
_("\"%s\" was already signed by key %s\n"),
|
||||
user, keystr_from_pk (pk));
|
||||
|
||||
if (opt.expert && !quick
|
||||
&& cpr_get_answer_is_yes ("sign_uid.dupe_okay",
|
||||
_("Do you want to sign it "
|
||||
"again anyway? (y/N) ")))
|
||||
if (opt.flags.force_sign_key
|
||||
|| (opt.expert && !quick
|
||||
&& cpr_get_answer_is_yes ("sign_uid.dupe_okay",
|
||||
_("Do you want to sign it "
|
||||
"again anyway? (y/N) "))))
|
||||
{
|
||||
/* Don't delete the old sig here since this is
|
||||
an --expert thing. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue