mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-17 14:07:03 +01:00
Better reset the PIN verification stati after changing the key attributes.
This commit is contained in:
parent
96abdb1386
commit
806b0acad7
@ -6,6 +6,7 @@
|
|||||||
* app-openpgp.c (do_sign): Take exmode and Le from card
|
* app-openpgp.c (do_sign): Take exmode and Le from card
|
||||||
capabilities and pass them to iso7816_compute_ds.
|
capabilities and pass them to iso7816_compute_ds.
|
||||||
(do_auth): Ditto for iso7816_internal_authenticate.
|
(do_auth): Ditto for iso7816_internal_authenticate.
|
||||||
|
(change_keyattr): Reset CHV verification status.
|
||||||
|
|
||||||
2009-07-09 Werner Koch <wk@g10code.com>
|
2009-07-09 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
@ -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);
|
log_info ("size of key %d changed to %u bits\n", keyno+1, nbits);
|
||||||
flush_cache (app);
|
flush_cache (app);
|
||||||
parse_algorithm_attribute (app, keyno);
|
parse_algorithm_attribute (app, keyno);
|
||||||
|
app->did_chv1 = 0;
|
||||||
|
app->did_chv2 = 0;
|
||||||
|
app->did_chv3 = 0;
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user