mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Add support for the TCOS NullPIN feature.
This commit is contained in:
parent
c241d02e0d
commit
4817ff6528
6 changed files with 95 additions and 12 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue