summaryrefslogtreecommitdiffstats
path: root/crypt-gpgme.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2022-10-31 15:06:51 -0700
committerKevin McCarthy <kevin@8t8.us>2022-11-01 19:43:54 -0700
commitf0eb3586480c301b66657c7326b6546ef086c7f4 (patch)
tree0fc0780eec4488af018cb4115bdf2e4d2eefa870 /crypt-gpgme.c
parent48b6ea32e21db8b580cd3ca8c346c3e2c22756f6 (diff)
Fix public key block listing for old versions of gpgme.
Commit 382355a5 accidentally removed the data import for legacy mode, which would cause it to produce empty output.
Diffstat (limited to 'crypt-gpgme.c')
-rw-r--r--crypt-gpgme.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypt-gpgme.c b/crypt-gpgme.c
index 5c3c0fe5..bf120ab5 100644
--- a/crypt-gpgme.c
+++ b/crypt-gpgme.c
@@ -2386,6 +2386,12 @@ static int pgp_gpgme_extract_keys (gpgme_data_t keydata, FILE** fp)
dprint (1, (debugfile, "Error setting GPGME context home\n"));
goto err_tmpdir;
}
+
+ if ((err = gpgme_op_import (tmpctx, keydata)) != GPG_ERR_NO_ERROR)
+ {
+ dprint (1, (debugfile, "Error importing key\n"));
+ goto err_tmpdir;
+ }
}
tmpfile = mutt_buffer_pool_get ();