1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Neal H. Walfield 7195b94345 gpg: Don't check for ambiguous keys.
* g10/gpg.c (struct result): Move from here...
* g10/keydb.h (struct pubkey): ... to here.  Update users.
* g10/gpg.c (check_user_ids): Move from here...
* g10/getkey.c (get_pubkeys): ... to here.  Update users.  Use
get_pubkey_byname to look up the keys (this also prunes invalid keys).
(pubkey_free): New function.
(pubkeys_free): New function.
* g10/gpg.c (main): Don't check for ambiguous key specifications.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
Regression-due-to: e8c53fc

This change not only moves the checks for ambiguous key specifications
from gpg.c to getkey.c, it also disables the checks.  The old code was
too divorced from the actual key lookups and, as such, it reproduced
the logic.  Unfortunately, the reproduction was a poor one: despite
fixing some inconsistencies (e.g., 10cca02), it still didn't deal with
group expansion or the auto key lookup functionality.  Given the
amount of instability introduced by this change, we (Neal & Werner)
decided it is better to defer introducing this functionality until
2.3.
2015-12-22 15:03:56 +01:00
..
2015-11-06 13:29:01 +01:00
2014-10-31 14:21:34 +01:00
2015-08-06 17:00:41 +09:00
2015-12-22 15:03:53 +01:00
2007-07-04 19:49:40 +00:00
2014-11-13 12:01:42 +01:00
2015-05-01 13:58:18 +09:00
2015-12-22 15:03:56 +01:00
2015-02-04 09:15:34 +01:00
2015-12-22 15:03:56 +01:00
2015-02-04 09:15:34 +01:00
2015-11-17 12:50:22 +01:00
2015-12-22 15:03:56 +01:00
2015-11-17 14:53:00 +01:00
2015-12-15 10:45:00 +01:00
2015-12-21 20:56:29 +09:00
2015-10-05 19:48:47 +02:00
2015-12-21 20:56:29 +09:00
2015-10-05 19:48:47 +02:00
2015-11-17 12:50:22 +01:00
2015-12-22 15:03:56 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2008-12-12 08:54:50 +00:00
2015-11-17 12:50:22 +01:00
2015-04-06 13:07:09 +02:00
2015-11-17 12:50:22 +01:00
2015-12-22 15:03:53 +01:00
2015-12-22 15:03:56 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2015-09-10 18:12:20 +02:00
2015-12-02 15:21:58 +01:00
2015-11-19 15:48:01 +01:00
2014-01-29 17:45:05 +01:00