1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-03 12:11:33 +01:00
Werner Koch a479804c86
gpg: New options --recipient-file and --hidden-recipient-file.
* g10/gpg.c (oRecipientFile, oHiddenRecipientFile): New.
(opts): Add options --recipient-file and --hidden-recipient-file.
(main): Implement them.  Also remove duplicate code from similar
options.
* g10/keydb.h (PK_LIST_FROM_FILE): New.
(PK_LIST_SHIFT): Bump up.
* g10/pkclist.c (expand_group): Take care of PK_LIST_FROM_FILE.
(find_and_check_key): Add and implement arg FROM_FILE.
(build_pk_list): Pass new value for new arg.
* g10/getkey.c (get_pubkey_fromfile): New.
* g10/gpgv.c (read_key_from_file): New stub.
* g10/test-stubs.c (read_key_from_file): New stub.
* g10/server.c (cmd_recipient): Add flag --file.
* g10/import.c (read_key_from_file): New.

* tests/openpgp/defs.scm (key-file1): New.
(key-file2): New.
* tests/openpgp/setup.scm: Add their private keys and import the
key-file1.
* tests/openpgp/encrypt.scm: Add new test.

--

Signed-off-by: Werner Koch <wk@gnupg.org>
2016-07-06 15:35:19 +02:00
..
2016-06-30 18:50:16 +02:00
2016-02-14 14:46:30 +01:00
2014-10-31 14:21:34 +01:00
2007-07-04 19:49:40 +00:00
2016-07-01 16:50:12 +02:00
2014-11-13 12:01:42 +01:00
2015-02-04 09:15:34 +01:00
2015-02-04 09:15:34 +01:00
2016-06-30 18:50:16 +02:00
2016-06-30 15:28:42 +02:00
2016-07-01 14:16:18 +02:00
2016-06-30 15:31:37 +02:00
2016-06-28 15:56:48 +09:00
2016-01-22 10:54:10 +01:00
2016-06-28 15:56:48 +09:00
2016-06-30 11:45:13 +02:00
2008-12-12 08:54:50 +00:00
2016-05-11 19:27:03 +09:00
2016-06-30 18:50:16 +02:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2016-03-08 14:08:49 +01:00
2016-07-01 09:47:48 +02:00
2016-05-03 11:26:06 +02:00
2016-06-30 18:50:16 +02:00
2016-07-01 12:48:57 +02:00
2014-01-29 17:45:05 +01:00