From 165cdd8121bbf80bfe2da071539d3578630f198f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 20 Jul 2017 17:27:48 +0200 Subject: 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 | 3 +-- doc/gpg.texi | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/DETAILS b/doc/DETAILS index 28fb55a2c..0be55f4d6 100644 --- a/doc/DETAILS +++ b/doc/DETAILS @@ -241,8 +241,7 @@ described here. The origin of the key or the user ID. This is an integer optionally followed by a space and an URL. This goes along with - the previous field. The values are not yet defined. - + the previous field. The URL is quoted in C style. ** Special fields diff --git a/doc/gpg.texi b/doc/gpg.texi index 64dd50267..cae351b56 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -2531,6 +2531,13 @@ Print the ICAO spelling of the fingerprint in addition to the hex digits. Include the keygrip in the key listings. In @code{--with-colons} mode this is implicitly enable for secret keys. +@item --with-key-origin +@opindex with-key-origin +Include the locally held information on the origin and last update of +a key in a key listing. In @code{--with-colons} mode this is always +printed. This data is currently experimental and shall not be +considered part of the stable API. + @item --with-wkd-hash @opindex with-wkd-hash Print a Web Key Directory identifier along with each user ID in key -- cgit v1.2.3