mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
scd: Fix check_keypad_request.
* scd/app-openpgp.c (check_keypad_request): 0 means not to use pinpad.
This commit is contained in:
parent
e791ac6683
commit
c27315fc64
@ -1554,7 +1554,7 @@ check_keypad_request (app_t app, pininfo_t *pininfo, int admin_pin)
|
|||||||
else
|
else
|
||||||
pininfo->fixedlen = app->app_local->keypad.fixedlen_user;
|
pininfo->fixedlen = app->app_local->keypad.fixedlen_user;
|
||||||
|
|
||||||
if (pininfo->fixedlen < 0 /* User requests disable pinpad. */
|
if (pininfo->fixedlen == 0 /* User requests disable pinpad. */
|
||||||
|| pininfo->fixedlen < pininfo->minlen
|
|| pininfo->fixedlen < pininfo->minlen
|
||||||
|| pininfo->fixedlen > pininfo->maxlen
|
|| pininfo->fixedlen > pininfo->maxlen
|
||||||
/* Reader doesn't have the capability to input a PIN which
|
/* Reader doesn't have the capability to input a PIN which
|
||||||
|
Loading…
x
Reference in New Issue
Block a user