From 09dd073096439f6ae0122e57321201f79045d3bc Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 13 Dec 2012 13:36:23 +0900 Subject: [PATCH] Card: Fix the process of writing key or generating key. * g10/app-openpgp.c (store_fpr): Flush KEY-FPR and KEY-TIME. -- (cherry picked from commit e7dca3e83ebd6df0a7ea55e97c3cd6e91be90af5) --- g10/app-openpgp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g10/app-openpgp.c b/g10/app-openpgp.c index b2ca46910..a3a977b31 100644 --- a/g10/app-openpgp.c +++ b/g10/app-openpgp.c @@ -688,9 +688,9 @@ store_fpr (app_t app, int keynumber, u32 timestamp, xfree (buffer); tag = (card_version > 0x0007? 0xC7 : 0xC6) + keynumber; - flush_cache_item (app, tag); + flush_cache_item (app, 0xC5); tag2 = 0xCE + keynumber; - flush_cache_item (app, tag2); + flush_cache_item (app, 0xCD); rc = iso7816_put_data (app->slot, 0, tag, fpr, 20); if (rc)