1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Neal H. Walfield e16d7168c5 gpg: Allow multiple --default-key options. Take the last available key.
* g10/getkey.c (parse_def_secret_key): New function.
(get_seckey_default): Add parameter ctrl.  Update callers.  Use
parse_def_secret_key to get the default secret key, if any.
(getkey_byname): Likewise.
(enum_secret_keys): Likewise.
* g10/options.h (opt): Change def_secret_key's type from a char * to a
strlist_t.
* g10/gpg.c (main): When processing --default-key, add the key to
OPT.DEF_SECRET_KEY.
* g10/gpgv.c (get_session_key): Add parameter ctrl.  Update callers.
* g10/mainproc.c (proc_pubkey_enc): Likewise.
(do_proc_packets): Likewise.
* g10/pkclist.c (default_recipient): Likewise.
* g10/pubkey-enc.c (get_session_key): Likewise.
* g10/sign.c (clearsign_file): Likewise.
(sign_symencrypt_file): Likewise.
* g10/skclist.c (build_sk_list): Likewise.
* g10/test-stubs.c (get_session_key): Likewise.

--
Signed-off-by: Neal H. Walield <neal@g10code.com>
GnuPG-bug-id: 806
2015-11-04 13:19:52 +01:00
..
2014-10-31 14:21:34 +01:00
2015-08-06 17:00:41 +09:00
2007-07-04 19:49:40 +00:00
2015-10-08 15:40:53 +02: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-03 20:44:14 +01:00
2015-10-29 10:10:39 +01:00
2015-08-06 17:00:41 +09:00
2015-10-29 10:10:41 +01:00
2015-10-30 12:33:40 +01:00
2015-10-05 19:48:47 +02:00
2015-10-05 19:48:47 +02:00
2015-08-06 17:00:41 +09:00
2008-12-12 08:54:50 +00:00
2015-04-06 13:07:09 +02:00
2015-09-10 18:12:20 +02:00
2015-10-19 20:11:00 +02:00
2015-09-10 18:12:20 +02:00
2015-11-03 23:20:46 +01:00
2015-10-18 18:45:40 +02:00
2014-01-29 17:45:05 +01:00