Home GnuPG
Diffusion GnuPG e8c53fca954d

gpg: Check for ambiguous or non-matching key specs.
e8c53fca954dUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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.

Debian-debug-id: 544490

  • Signed-off-by: Neal H. Walfield <neal@g10code.com>
  • GnuPG-bug-id: T1128

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Nov 5 2015, 5:29 PM
Parents
rGf38bac8883ea: common: Add new function strlist_rev.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rGe8c53fca954d: gpg: Check for ambiguous or non-matching key specs. (authored by Neal H. Walfield <neal@g10code.com>).Nov 6 2015, 12:04 PM
neal mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:08 PM
neal mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:31 PM