1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-31 22:18:03 +02:00

SCD: Fix the process of writing key or generating key.

* scd/app-openpgp.c (store_fpr): Flush KEY-FPR and KEY-TIME.
This commit is contained in:
NIIBE Yutaka 2012-12-13 13:36:23 +09:00
parent 649b31c663
commit e7dca3e83e

View File

@ -688,9 +688,9 @@ store_fpr (app_t app, int keynumber, u32 timestamp,
xfree (buffer); xfree (buffer);
tag = (card_version > 0x0007? 0xC7 : 0xC6) + keynumber; tag = (card_version > 0x0007? 0xC7 : 0xC6) + keynumber;
flush_cache_item (app, tag); flush_cache_item (app, 0xC5);
tag2 = 0xCE + keynumber; tag2 = 0xCE + keynumber;
flush_cache_item (app, tag2); flush_cache_item (app, 0xCD);
rc = iso7816_put_data (app->slot, 0, tag, fpr, 20); rc = iso7816_put_data (app->slot, 0, tag, fpr, 20);
if (rc) if (rc)