mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Extend --key-origin to take an optional URL arg.
* g10/getkey.c (parse_key_origin): Parse appended URL. * g10/options.h (struct opt): Add field 'key_origin_url'. * g10/gpg.c (main) <aImport>: Pass that option to import_keys. * g10/import.c (apply_meta_data): Extend for file and url. * g10/keyserver.c (keyserver_fetch): Pass the url to import_keys_es_stream. -- Example: gpg --key-origin url,myscheme://bla --import FILE Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
2ca0381d07
commit
87b5421ca8
6 changed files with 49 additions and 5 deletions
|
@ -2260,12 +2260,14 @@ hint to optimize its buffer allocation strategy. It is also used by
|
|||
the @option{--status-fd} line ``PROGRESS'' to provide a value for
|
||||
``total'' if that is not available by other means.
|
||||
|
||||
@item --key-origin @var{string}
|
||||
@item --key-origin @var{string}[,@var{url}]
|
||||
@opindex key-origin
|
||||
gpg can track the origin of a key. Certain origins are implicitly
|
||||
known (e.g. keyserver, web key directory) and set. For a standard
|
||||
import the origin of the keys imported can be set with this optionb.
|
||||
To list the possible values use "help" for @var{string}.
|
||||
import the origin of the keys imported can be set with this option.
|
||||
To list the possible values use "help" for @var{string}. Some origins
|
||||
can store an optional @var{url} argument. That URL can appended to
|
||||
@var{string} after a comma.
|
||||
|
||||
@item --import-options @code{parameters}
|
||||
@opindex import-options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue