aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-05-16 01:09:41 +0000
committerNIIBE Yutaka <[email protected]>2019-05-16 01:09:41 +0000
commitdc35b25195e564affdea7969a7c4ea4e200ab45f (patch)
treee4fe0ea00ad5bd5f7025a5de366236371d20c4fe /scd/app-openpgp.c
parentagent: Support scdaemon operation using KEYGRIP. (diff)
downloadgnupg-dc35b25195e564affdea7969a7c4ea4e200ab45f.tar.gz
gnupg-dc35b25195e564affdea7969a7c4ea4e200ab45f.zip
agent,scd: Scan and load all public keys for availability.
* agent/divert-scd.c (ask_for_card): Scan by SERIALNO command. * scd/app-openpgp.c (do_with_keygrip): Make sure to load pubkey. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r--scd/app-openpgp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index c1c90350b..95df43828 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -4950,6 +4950,10 @@ do_with_keygrip (app_t app, ctrl_t ctrl, int action, const char *keygrip_str)
{
int i;
+ /* Make sure we have load the public keys. */
+ for (i = 0; i < 3; i++)
+ get_public_key (app, i);
+
if (action == KEYGRIP_ACTION_LOOKUP)
{
if (keygrip_str == NULL)