aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r--scd/app-openpgp.c4
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)
{