mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
SCD: Support fixed length PIN input for keypad.
* scd/iso7816.h (struct pininfo_s): Remove MODE and add FIXEDLEN. * scd/app-dinsig.c (verify_pin): Initialize FIXEDLEN to unknown. * scd/app-nks.c (verify_pin): Likewise. * scd/app-openpgp.c (verify_a_chv, verify_chv3, do_change_pin): Likewise. * scd/apdu.c (check_pcsc_keypad): Add comment. (pcsc_keypad_verify, pcsc_keypad_modify): PC/SC driver only support readers with the feature of variable length input (yet). (apdu_check_keypad): Set FIXEDLEN. * scd/ccid-driver.c (ccid_transceive_secure): Add GEMPC_PINPAD specific settings. Support fixed length PIN input for keypad.
This commit is contained in:
parent
b526f6e223
commit
40a914a2e3
6 changed files with 52 additions and 21 deletions
|
@ -34,7 +34,12 @@
|
|||
ccid-driver.c for details. */
|
||||
struct pininfo_s
|
||||
{
|
||||
int mode; /* 0: Use variable length input. 1: Use fixed length input. */
|
||||
int fixedlen; /*
|
||||
* -1: Variable length input is not supported,
|
||||
* no information of fixed length yet.
|
||||
* 0: Use variable length input.
|
||||
* >0: Fixed length of PIN.
|
||||
*/
|
||||
int minlen;
|
||||
int maxlen;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue