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 04:37:06 +0000 (13:37 +0900)
commit40a914a2e3052847b49c4b5e8ac8538e97efd18a
treef7387bd04fd0479e37801869f8bd699d44123daa
parentb526f6e223604b7c1852ef2aab9fc1ea691b1181
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