From 806b0acad75de522fcc0f0ed69916dff12876c28 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 10 Jul 2009 10:47:30 +0000 Subject: Better reset the PIN verification stati after changing the key attributes. --- scd/app-openpgp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scd/app-openpgp.c') 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; } -- cgit