gpg: New option --key-origin.
authorWerner Koch <wk@gnupg.org>
Thu, 13 Jul 2017 15:28:32 +0000 (17:28 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 13 Jul 2017 16:29:01 +0000 (18:29 +0200)
commitfa1155e89ebb4b16ee95549b8ab72672df3a0c54
tree515f2f5684c032772406b27e4ea94a91c87e766a
parent877a321d011deb3e8501aa9cc5e9f9cd0b19dddf
gpg: New option --key-origin.

* g10/keydb.h (KEYORG_): Rename to KEYORG_.
* g10/packet.h (PKT_user_id): Rename field keysrc to keyorg.  Adjust
users.
(PKT_public_key): Ditto.
(PKT_ring_trust): Ditto.
* g10/options.h (struct opt): Add field key_origin.
* g10/getkey.c (parse_key_origin): New.
* g10/gpg.c (oKeyOrigin): New.
(opts): Add "keys-origin".
(main): Set option.

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/DETAILS
doc/gpg.texi
g10/build-packet.c
g10/call-dirmngr.c
g10/getkey.c
g10/gpg.c
g10/keydb.h
g10/options.h
g10/packet.h
g10/parse-packet.c