aboutsummaryrefslogtreecommitdiffstats
path: root/g10/export.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-07-04 08:42:48 +0000
committerWerner Koch <[email protected]>2019-07-04 13:14:30 +0000
commit11871433436b5b9b9aca46579dd185a9a77674cd (patch)
tree68662bd1e067da1f74f98b07f4d56a497ce56bc6 /g10/export.c
parentdirmngr: Avoid endless loop in case of HTTP error 503. (diff)
downloadgnupg-11871433436b5b9b9aca46579dd185a9a77674cd.tar.gz
gnupg-11871433436b5b9b9aca46579dd185a9a77674cd.zip
gpg: Make the get_pubkey_byname interface easier to understand.
* g10/keydb.h (enum get_pubkey_modes): New. * g10/getkey.c (get_pubkey_byname): Repalce no_akl by a mode arg and change all callers. -- This change prepares the implementation of GET_PUBKEY_NO_LOCAL. Signed-off-by: Werner Koch <[email protected]> (cherry picked from commit 9980f81da765f88a65604ab083563bf15ccdb425)
Diffstat (limited to '')
-rw-r--r--g10/export.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/export.c b/g10/export.c
index 4216a2449..0d00168b2 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -2161,10 +2161,10 @@ export_ssh_key (ctrl_t ctrl, const char *userid)
{
getkey_ctx_t getkeyctx;
- err = get_pubkey_byname (ctrl, &getkeyctx, NULL, userid, &keyblock,
+ err = get_pubkey_byname (ctrl, GET_PUBKEY_NO_AKL,
+ &getkeyctx, NULL, userid, &keyblock,
NULL,
- 0 /* Only usable keys or given exact. */,
- 1 /* No AKL lookup. */);
+ 0 /* Only usable keys or given exact. */);
if (!err)
{
err = getkey_next (ctrl, getkeyctx, NULL, NULL);