aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-07-10 10:47:30 +0000
committerWerner Koch <[email protected]>2009-07-10 10:47:30 +0000
commit806b0acad75de522fcc0f0ed69916dff12876c28 (patch)
tree96603a278064bc944b077356071c9d9c6a287e58 /scd/app-openpgp.c
parentFix for card keys > 2048 bit. (diff)
downloadgnupg-806b0acad75de522fcc0f0ed69916dff12876c28.tar.gz
gnupg-806b0acad75de522fcc0f0ed69916dff12876c28.zip
Better reset the PIN verification stati after changing the key attributes.
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r--scd/app-openpgp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 134679bfb..d2b2bdd3f 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -2397,6 +2397,9 @@ change_keyattr (app_t app, int keyno, unsigned int nbits,
log_info ("size of key %d changed to %u bits\n", keyno+1, nbits);
flush_cache (app);
parse_algorithm_attribute (app, keyno);
+ app->did_chv1 = 0;
+ app->did_chv2 = 0;
+ app->did_chv3 = 0;
return err;
}