pcsc pinpad support (part 5)
NIIBE Yutaka
gniibe at fsij.org
Wed Jan 19 07:53:56 CET 2011
Here is the part 5, fixing a bug introduced in part 4.
I test part 1 to part 5 with Gnuk version 0.8, which is about to
be released.
Please test and report the result. Note that PIN modification
is only supported for OpenPGP card verion 2.
---
scd/app-openpgp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 48af0ca..18c56f2 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -1903,7 +1903,7 @@ do_change_pin (app_t app, ctrl_t ctrl, const char *chvnostr,
int chvno = atoi (chvnostr);
char *resetcode = NULL;
char *oldpinvalue = NULL;
- char *pinvalue;
+ char *pinvalue = NULL;
int reset_mode = !!(flags & APP_CHANGE_FLAG_RESET);
int set_resetcode = 0;
iso7816_pininfo_t pininfo;
--
1.7.2.3
More information about the Gnupg-devel
mailing list