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. --- g10/keydb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'g10/keydb.h') diff --git a/g10/keydb.h b/g10/keydb.h index 6416e634d..15345bb13 100644 --- a/g10/keydb.h +++ b/g10/keydb.h @@ -398,6 +398,7 @@ char *get_user_id_byfpr_native (ctrl_t ctrl, const byte *fpr); void release_akl(void); int parse_auto_key_locate(char *options); int parse_key_origin (char *string); +const char *key_origin_string (int origin); /*-- keyid.c --*/ int pubkey_letter( int algo ); -- cgit v1.2.3