[svn] GnuPG - r5074 - trunk/scd
svn author wk
cvs at cvs.gnupg.org
Fri Jul 10 12:47:30 CEST 2009
Author: wk
Date: 2009-07-10 12:47:30 +0200 (Fri, 10 Jul 2009)
New Revision: 5074
Modified:
trunk/scd/ChangeLog
trunk/scd/app-openpgp.c
Log:
Better reset the PIN verification stati after changing the key attributes.
Modified: trunk/scd/ChangeLog
===================================================================
--- trunk/scd/ChangeLog 2009-07-10 10:15:33 UTC (rev 5073)
+++ trunk/scd/ChangeLog 2009-07-10 10:47:30 UTC (rev 5074)
@@ -6,6 +6,7 @@
* app-openpgp.c (do_sign): Take exmode and Le from card
capabilities and pass them to iso7816_compute_ds.
(do_auth): Ditto for iso7816_internal_authenticate.
+ (change_keyattr): Reset CHV verification status.
2009-07-09 Werner Koch <wk at g10code.com>
Modified: trunk/scd/app-openpgp.c
===================================================================
--- trunk/scd/app-openpgp.c 2009-07-10 10:15:33 UTC (rev 5073)
+++ trunk/scd/app-openpgp.c 2009-07-10 10:47:30 UTC (rev 5074)
@@ -2397,6 +2397,9 @@
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;
}
More information about the Gnupg-commits
mailing list