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
f3e68e39da
commit
87d7b7e075
4 changed files with 32 additions and 13 deletions
|
@ -430,6 +430,7 @@ enum cmd_and_opt_values
|
|||
oUseOnlyOpenPGPCard,
|
||||
oIncludeKeyBlock,
|
||||
oNoIncludeKeyBlock,
|
||||
oForceSignKey,
|
||||
|
||||
oNoop
|
||||
};
|
||||
|
@ -838,6 +839,7 @@ static ARGPARSE_OPTS opts[] = {
|
|||
ARGPARSE_s_s (oWeakDigest, "weak-digest","@"),
|
||||
ARGPARSE_s_n (oUnwrap, "unwrap", "@"),
|
||||
ARGPARSE_s_n (oOnlySignTextIDs, "only-sign-text-ids", "@"),
|
||||
ARGPARSE_s_n (oForceSignKey, "force-sign-key", "@"),
|
||||
|
||||
/* Aliases. I constantly mistype these, and assume other people do
|
||||
as well. */
|
||||
|
@ -2674,6 +2676,9 @@ main (int argc, char **argv)
|
|||
|
||||
case oAnswerYes: opt.answer_yes = 1; break;
|
||||
case oAnswerNo: opt.answer_no = 1; break;
|
||||
|
||||
case oForceSignKey: opt.flags.force_sign_key = 1; break;
|
||||
|
||||
case oKeyring: append_to_strlist( &nrings, pargs.r.ret_str); break;
|
||||
case oPrimaryKeyring:
|
||||
sl = append_to_strlist (&nrings, pargs.r.ret_str);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue