aboutsummaryrefslogtreecommitdiffstats
path: root/g10/main.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-07-04 13:13:26 +0000
committerWerner Koch <[email protected]>2019-07-04 13:14:43 +0000
commit46f3283b345e1cabca4b0320cf98274ade8ec162 (patch)
tree4830956ab17e90720a86199c145ca50e9d0f48be /g10/main.h
parentgpg: Make the get_pubkey_byname interface easier to understand. (diff)
downloadgnupg-46f3283b345e1cabca4b0320cf98274ade8ec162.tar.gz
gnupg-46f3283b345e1cabca4b0320cf98274ade8ec162.zip
gpg: New command --locate-external-key.
* g10/gpg.c (aLocateExtKeys): New. (opts): Add --locate-external-keys. (main): Implement that. * g10/getkey.c (get_pubkey_byname): Implement GET_PUBKEY_NO_LOCAL. (get_best_pubkey_byname): Add arg 'mode' and pass on to get_pubkey_byname. Change callers. * g10/keylist.c (public_key_list): Add arg 'no_local'. (locate_one): Ditto. Pass on to get_best_pubkey_byname. -- This new command is a shortcut for --auto-key-locate nodefault,clear,wkd,... --locate-key and uses the default or configured AKL list but does so without local. See also GnuPG-bug-id: 4599 Signed-off-by: Werner Koch <[email protected]> (cherry picked from commit d00c8024e58822e0623b3fad99248ce68a8b7725)
Diffstat (limited to 'g10/main.h')
-rw-r--r--g10/main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/main.h b/g10/main.h
index 150aea0f4..9136e4cc3 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -438,7 +438,8 @@ struct revocation_reason_info * get_default_uid_revocation_reason(void);
void release_revocation_reason_info( struct revocation_reason_info *reason );
/*-- keylist.c --*/
-void public_key_list (ctrl_t ctrl, strlist_t list, int locate_mode );
+void public_key_list (ctrl_t ctrl, strlist_t list,
+ int locate_mode, int no_local);
void secret_key_list (ctrl_t ctrl, strlist_t list );
void print_subpackets_colon(PKT_signature *sig);
void reorder_keyblock (KBNODE keyblock);