aboutsummaryrefslogtreecommitdiffstats
path: root/common/userids.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-11-05 16:29:53 +0000
committerNeal H. Walfield <[email protected]>2015-11-06 11:04:35 +0000
commite8c53fca954d33366e3494a6d4eecc3868282bcc (patch)
treef5408893983c8e1c4e6af9fb4410fb4d916d4247 /common/userids.c
parentcommon: Add new function strlist_rev. (diff)
downloadgnupg-e8c53fca954d33366e3494a6d4eecc3868282bcc.tar.gz
gnupg-e8c53fca954d33366e3494a6d4eecc3868282bcc.zip
gpg: Check for ambiguous or non-matching key specs.
* g10/gpg.c (check_user_ids): New function. (main): Check that any user id specifications passed to --local-user and --remote-user correspond to exactly 1 user. Check that any user id specifications passed to --default-key correspond to at most 1 user. Warn if any user id specifications passed to --local-user or --default-user are possible ambiguous (are not specified by long keyid or fingerprint). * g10/getkey.c (parse_def_secret_key): Don't warn about possible ambiguous key descriptions here. -- Signed-off-by: Neal H. Walfield <[email protected]> GnuPG-bug-id: 1128 Debian-debug-id: 544490
Diffstat (limited to 'common/userids.c')
0 files changed, 0 insertions, 0 deletions