diff options
author | Werner Koch <[email protected]> | 2008-06-24 16:00:29 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2008-06-24 16:00:29 +0000 |
commit | 4817ff652827d3b715315655c2272f774c20f42c (patch) | |
tree | 417ea337575f4e85c3bd9ca8cca822f10f548e1e /scd/app-openpgp.c | |
parent | Code cleanup. (diff) | |
download | gnupg-4817ff652827d3b715315655c2272f774c20f42c.tar.gz gnupg-4817ff652827d3b715315655c2272f774c20f42c.zip |
Add support for the TCOS NullPIN feature.
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r-- | scd/app-openpgp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index c8ad936f4..9433318e2 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -1644,13 +1644,15 @@ do_setattr (app_t app, const char *name, /* Handle the PASSWD command. */ static gpg_error_t -do_change_pin (app_t app, ctrl_t ctrl, const char *chvnostr, int reset_mode, +do_change_pin (app_t app, ctrl_t ctrl, const char *chvnostr, + unsigned int flags, gpg_error_t (*pincb)(void*, const char *, char **), void *pincb_arg) { int rc = 0; int chvno = atoi (chvnostr); char *pinvalue; + int reset_mode = !!(flags & APP_CHANGE_FLAG_RESET); if (reset_mode && chvno == 3) { |