1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Better reset the PIN verification stati after changing the key attributes.

This commit is contained in:
Werner Koch 2009-07-10 10:47:30 +00:00
parent 96abdb1386
commit 806b0acad7
2 changed files with 4 additions and 0 deletions

View file

@ -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;
}