SCD: Fix the process of writing key or generating key.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 13 Dec 2012 04:36:23 +0000 (13:36 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 13 Dec 2012 04:44:43 +0000 (13:44 +0900)
* scd/app-openpgp.c (store_fpr): Flush KEY-FPR and KEY-TIME.

scd/app-openpgp.c

index 5a9214c..5928ec6 100644 (file)
@@ -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)