summaryrefslogtreecommitdiffstats
path: root/g10/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-08-23 13:22:15 +0200
committerWerner Koch <wk@gnupg.org>2019-08-23 13:22:15 +0200
commitd058d80ed0d5edeff6d85108054b1dfd45ddad7d (patch)
treed230ad54433d3f0cb8cbe31cd67069e347591401 /g10/keydb.h
parentgpg: Silence some warning messages during -Kv. (diff)
downloadgnupg2-d058d80ed0d5edeff6d85108054b1dfd45ddad7d.tar.xz
gnupg2-d058d80ed0d5edeff6d85108054b1dfd45ddad7d.zip
gpg: Allow --locate-external-key even with --no-auto-key-locate.
* g10/getkey.c (akl_empty_or_only_local): New. * g10/gpg.c (DEFAULT_AKL_LIST): New. (main): Use it here. (main) <aLocateExtKeys>: Set default AKL if none is set. -- This better matches the expectations of the user. The used list in this case is the default list ("local,wkd") with local ignored by the command anyway. GnuPG-bug-id: 4662 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to '')
-rw-r--r--g10/keydb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/keydb.h b/g10/keydb.h
index 6ad8dce4c..6b719ad44 100644
--- a/g10/keydb.h
+++ b/g10/keydb.h
@@ -448,6 +448,7 @@ char *get_user_id_native (ctrl_t ctrl, u32 *keyid);
char *get_user_id_byfpr_native (ctrl_t ctrl, const byte *fpr, size_t fprlen);
void release_akl(void);
+int akl_empty_or_only_local (void);
int parse_auto_key_locate(const char *options);
int parse_key_origin (char *string);
const char *key_origin_string (int origin);