gpg: New option --with-key-origin.
authorWerner Koch <wk@gnupg.org>
Thu, 20 Jul 2017 15:27:48 +0000 (17:27 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 20 Jul 2017 16:13:40 +0000 (18:13 +0200)
commit165cdd8121bbf80bfe2da071539d3578630f198f
tree878fc9f6f81d5d86a31362fb044a159ae9afc274
parentbddc2e04f1ddc18be20efc0f0508be401b345f42
gpg: New option --with-key-origin.

* g10/getkey.c (parse_key_origin): Factor list out as ...
(key_origin_list): new struct.
(key_origin_string): New.
* g10/gpg.c (oWithKeyOrigin): New const.
(opts): New option --with-key-origin.
(main): Implement option.
* g10/options.h (struct opt): New flag with_key_origin.
* g10/keylist.c (list_keyblock_print): Print key origin info.
(list_keyblock_colon): Ditto.
doc/DETAILS
doc/gpg.texi
g10/getkey.c
g10/gpg.c
g10/keydb.h
g10/keylist.c
g10/options.h