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
..
2008-06-25 11:14:48 +00:00
2014-12-14 12:15:21 +01:00
2006-11-14 10:23:21 +00:00
2014-11-06 10:03:39 +01:00
2011-12-01 11:09:02 +01:00
2014-11-04 21:47:03 +01:00
2010-06-10 10:39:44 +00:00
2013-04-17 11:26:27 +02:00
2015-06-09 21:29:15 +02:00
2015-10-18 18:45:40 +02:00
2015-10-28 10:20:17 +01:00
2015-03-04 15:10:52 +01:00
2012-12-19 11:05:05 +01:00
2003-01-09 13:24:01 +00:00
2009-07-22 13:33:46 +00:00
2010-06-10 10:39:44 +00:00
2004-12-21 19:05:15 +00:00
2004-12-21 19:05:15 +00:00
2006-06-20 17:47:10 +00:00
2007-07-04 19:49:40 +00:00
2011-08-12 14:40:47 +02:00
2007-03-08 18:31:56 +00:00
2014-07-03 11:03:22 +02:00
2014-06-25 11:15:45 +02:00
2015-10-18 18:45:40 +02:00
2015-09-16 21:24:14 +02:00
2015-11-04 13:19:52 +01:00
2015-06-29 11:06:41 +02:00
2015-10-19 14:24:27 +02:00
2013-04-19 12:01:22 +02:00
2015-10-29 15:03:55 +01:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2015-08-20 16:58:30 +02:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2013-02-12 14:15:21 +09:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2014-09-26 14:43:48 +02:00
2007-12-04 15:00:14 +00:00
2007-12-04 15:00:14 +00:00
2015-07-03 22:21:52 +02:00
2007-05-08 13:59:41 +00:00
2015-06-09 21:29:15 +02:00
2006-08-21 20:20:23 +00:00
2015-10-29 10:26:04 +09:00
2015-09-28 18:40:38 +02:00
2012-11-30 12:43:34 -05:00
2004-09-29 11:04:30 +00:00
2014-10-17 13:32:16 +02:00
2015-06-09 21:29:15 +02:00
2008-06-25 11:14:48 +00:00
2012-11-30 12:47:49 -05:00
2015-06-09 21:29:15 +02:00
2006-08-18 13:05:39 +00:00
2014-11-07 18:42:37 +01:00
2009-07-22 13:33:46 +00:00
2011-08-12 14:40:47 +02:00
2015-10-28 10:20:17 +01:00
2013-03-29 09:13:05 +01:00
2007-03-19 14:35:04 +00:00
2010-07-23 16:16:14 +00:00
2006-12-06 16:38:34 +00:00
2014-11-05 08:55:17 +01:00
2015-06-09 21:29:15 +02:00