aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-11-19 04:49:08 +0000
committerNIIBE Yutaka <[email protected]>2020-11-19 04:49:08 +0000
commit84020385be19556800b22cc5b0ce098acd424298 (patch)
tree6d0b0beb5783938c81f4135b55a4101f3d26e345
parentPost release updates (diff)
downloadgnupg-84020385be19556800b22cc5b0ce098acd424298.tar.gz
gnupg-84020385be19556800b22cc5b0ce098acd424298.zip
scd:openpgp: Public keys should be available for check_keyidstr.
* scd/app-openpgp.c (check_keyidstr): Call get_public_key. -- GnuPG-bug-id: 5065 Fixes-commit: 1049f06c6d2e1a833af4c73ea67a05417bbd0967 Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--scd/app-openpgp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 6245a5331..ec60db2e6 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -4392,10 +4392,15 @@ check_keyidstr (app_t app, const char *keyidstr, int keyno, int *r_use_auth)
const char *s;
int n;
const char *fpr = NULL;
+ int i;
if (r_use_auth)
*r_use_auth = 0;
+ /* Make sure we have load the public keys. */
+ for (i = 0; i < 3; i++)
+ get_public_key (app, i);
+
if (strlen (keyidstr) < 32)
return gpg_error (GPG_ERR_INV_ID);
else