Page MenuHome GnuPG

719_0001-gpg-Check-for-ambiguous-or-non-matching-key-specs.patch
Needs ReviewPublic

Authored by neal on Nov 5 2015, 5:38 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

From b03dd0fb249e0a46b61e7837b83d7369ba6f4920 Mon Sep 17 00:00:00 2001
From: "Neal H. Walfield" <neal@g10code.com>
Date: Thu, 5 Nov 2015 17:29:53 +0100
Subject: [PATCH] gpg: Check for ambiguous or non-matching key specs.

  • g10/gpg.c (check_user_ids): New function.

(main): Check if the user id specifications passed to --local-user are
ambiguous and there is a key available. Warn if any user id
specifications passed to --encrypt-to are ambiguous and check if there
is a key available. Check if the user id specifications passed to
--default-key are ambiguous.

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

Debian-debug-id: 544490

g10/gpg.c | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 127 insertions(+)

2.1.4

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped