mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +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
|
@ -4515,7 +4515,7 @@ main (int argc, char **argv)
|
|||
opt.import_options |= IMPORT_FAST; /* fall through */
|
||||
case aImport:
|
||||
import_keys (ctrl, argc? argv:NULL, argc, NULL,
|
||||
opt.import_options, opt.key_origin, NULL);
|
||||
opt.import_options, opt.key_origin, opt.key_origin_url);
|
||||
break;
|
||||
|
||||
/* TODO: There are a number of command that use this same
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue