1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 28311d1fa5
gpg: Do not pre-check keys given on the command line.
* g10/keydb.h (PK_LIST_ENCRYPT_TO, PK_LIST_HIDDEN, PK_LIST_CONFIG)
(PK_LIST_SHIFT): New.
* g10/pkclist.c (build_pk_list): Use them here.
* g10/gpg.c (check_user_ids, main): Ditto.

* g10/gpg.c (main): Set PK_LIST_CONFIG for REMUSR and LOCUSR.
(check_user_ids): Skip check for command line specified options.
--

If a key has been given on the command line and it has not been
given by one of the encrypt-to options, we now skip the checks.  The
reason is that the actual key selection code does its own checks and
provides proper status message to the caller to detect the wrong keys.
Without this we would break most frontends because they expect for
example STATUS_INV_RECP.

Signed-off-by: Werner Koch <wk@gnupg.org>
2015-12-04 08:56:02 +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-11-17 12:50:22 +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-02-04 09:15:34 +01:00
2015-02-04 09:15:34 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 14:53:00 +01:00
2015-11-20 12:52:04 +01:00
2015-12-03 10:40:05 +01:00
2015-10-05 19:48:47 +02:00
2015-11-17 14:53:00 +01:00
2015-10-05 19:48:47 +02: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
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-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