ミラー元
git://git.gnupg.org/gnupg.git
同期済み 2025-07-02 22:46:30 +02:00
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>
このコミットが含まれているのは:
コミット
a479804c86
13個のファイルの変更、330行の追加、82行の削除
21
doc/gpg.texi
21
doc/gpg.texi
|
@ -2037,6 +2037,22 @@ limited countermeasure against traffic analysis. If this option or
|
|||
@option{--recipient} is not specified, GnuPG asks for the user ID unless
|
||||
@option{--default-recipient} is given.
|
||||
|
||||
@item --recipient-file @var{file}
|
||||
@itemx -f
|
||||
@opindex recipient-file
|
||||
This option is similar to @option{--recipient} except that it
|
||||
encrypts to a key stored in the given file. @var{file} must be the
|
||||
name of a file containing exactly one key. @command{gpg} assumes that
|
||||
the key in this file is fully valid.
|
||||
|
||||
@item --hidden-recipient-file @var{file}
|
||||
@itemx -F
|
||||
@opindex hidden-recipient-file
|
||||
This option is similar to @option{--hidden-recipient} except that it
|
||||
encrypts to a key stored in the given file. @var{file} must be the
|
||||
name of a file containing exactly one key. @command{gpg} assumes that
|
||||
the key in this file is fully valid.
|
||||
|
||||
@item --encrypt-to @code{name}
|
||||
@opindex encrypt-to
|
||||
Same as @option{--recipient} but this one is intended for use in the
|
||||
|
@ -2055,11 +2071,6 @@ recipients given either by use of @option{--recipient} or by the asked user id.
|
|||
No trust checking is performed for these user ids and even disabled
|
||||
keys can be used.
|
||||
|
||||
@item --encrypt-to-default-key
|
||||
@opindex encrypt-to-default-key
|
||||
If the default secret key is taken from @option{--default-key}, then
|
||||
also encrypt to that key.
|
||||
|
||||
@item --no-encrypt-to
|
||||
@opindex no-encrypt-to
|
||||
Disable the use of all @option{--encrypt-to} and
|
||||
|
|
読み込み中…
Add table
Add a link
新しいイシューから参照