Home GnuPG
Diffusion GnuPG 87b5421ca84b

gpg: Extend --key-origin to take an optional URL arg.

Description

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>

Details

Provenance
wernerAuthored on Jul 24 2017, 9:07 PM
Parents
rG2ca0381d077d: gpg: Store key origin info for new keys from a keyserver
Branches
Unknown
Tags
Unknown