summaryrefslogtreecommitdiffstats
path: root/g10/export.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-07-04 10:42:48 +0200
committerWerner Koch <wk@gnupg.org>2019-07-04 10:42:48 +0200
commit9980f81da765f88a65604ab083563bf15ccdb425 (patch)
treef38f4a030de35bedcbda0c7983216622125e4444 /g10/export.c
parentdirmngr: Avoid endless loop in case of HTTP error 503. (diff)
downloadgnupg2-9980f81da765f88a65604ab083563bf15ccdb425.tar.xz
gnupg2-9980f81da765f88a65604ab083563bf15ccdb425.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 <wk@gnupg.org>
Diffstat (limited to 'g10/export.c')
-rw-r--r--g10/export.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/export.c b/g10/export.c
index 9be7d137e..e8bf14cf5 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -2174,10 +2174,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);