diff options
| author | Neal H. Walfield <[email protected]> | 2015-11-06 12:14:57 +0000 |
|---|---|---|
| committer | Neal H. Walfield <[email protected]> | 2015-11-06 12:16:37 +0000 |
| commit | a74aeb5dae1f673fcd98b39a6a0496f3c622709a (patch) | |
| tree | 5e48cfbf2cece79d752be12c7a283ff792ac984d /g10/gpg.c | |
| parent | common: When classifying keyids and fingerprints, reject trailing junk. (diff) | |
| download | gnupg-a74aeb5dae1f673fcd98b39a6a0496f3c622709a.tar.gz gnupg-a74aeb5dae1f673fcd98b39a6a0496f3c622709a.zip | |
gpg: Add new option --only-sign-text-ids.
* g10/options.h (opt): Add field only_sign_text_ids.
* g10/gpg.c (enum cmd_and_opt_values): Add value oOnlySignTextIDs.
(opts): Handle oOnlySignTextIDs.
(main): Likewise.
* g10/keyedit.c (sign_uids): If OPT.ONLY_SIGN_TEXT_IDS is set, don't
select non-text based IDs automatically.
(keyedit_menu): Adapt the prompt asking to sign all user ids according
to OPT.ONLY_SIGN_TEXT_IDS.
* doc/gpg.texi: Document the new option --only-sign-text-ids.
--
Signed-off-by: Neal H. Walfield <[email protected]>
GnuPG-bug-id: 1241
Debian-bug-id: 569702
Diffstat (limited to 'g10/gpg.c')
| -rw-r--r-- | g10/gpg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -392,6 +392,7 @@ enum cmd_and_opt_values oTOFUDBFormat, oWeakDigest, oUnwrap, + oOnlySignTextIDs, oNoop }; @@ -755,6 +756,7 @@ static ARGPARSE_OPTS opts[] = { ARGPARSE_s_s (oFakedSystemTime, "faked-system-time", "@"), ARGPARSE_s_s (oWeakDigest, "weak-digest","@"), ARGPARSE_s_n (oUnwrap, "unwrap", "@"), + ARGPARSE_s_n (oOnlySignTextIDs, "only-sign-text-ids", "@"), /* Aliases. I constantly mistype these, and assume other people do as well. */ @@ -3308,6 +3310,9 @@ main (int argc, char **argv) case oUnwrap: opt.unwrap_encryption = 1; break; + case oOnlySignTextIDs: + opt.only_sign_text_ids = 1; + break; case oDisplay: set_opt_session_env ("DISPLAY", pargs.r.ret_str); |
