aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2012-12-13 04:36:23 +0000
committerWerner Koch <[email protected]>2012-12-13 16:25:57 +0000
commit09dd073096439f6ae0122e57321201f79045d3bc (patch)
treebba441c87d71d96d23a8a91cdcec9714cd8b3909
parentFix mksamplekeys awk to not leave out the whitespace altogether (diff)
downloadgnupg-09dd073096439f6ae0122e57321201f79045d3bc.tar.gz
gnupg-09dd073096439f6ae0122e57321201f79045d3bc.zip
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)
-rw-r--r--g10/app-openpgp.c4
1 files 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)