SCD: Support fixed length PIN input for keypad.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 9 Jan 2013 07:23:55 +0000 (16:23 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 5 Feb 2013 05:11:19 +0000 (14:11 +0900)
commit15200f7001ce591233e4f266428d97c7e1ee29f1
tree337b0ec3972533cc7b7ec0ae5258fc5e6378aac2
parent4fe024cf33fcb1c0c789b548de39da2f61154cb9
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.
scd/apdu.c
scd/app-dinsig.c
scd/app-nks.c
scd/app-openpgp.c
scd/ccid-driver.c
scd/iso7816.h