scd: PC/SC pinpad input improvement.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 30 Aug 2013 02:06:50 +0000 (11:06 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 30 Aug 2013 02:15:32 +0000 (11:15 +0900)
commit755f92e2afaa7be32e4d60253971724639b99c16
tree34d31a039d6d747306b4e72cc87b3a432a5b55fa
parent6acb1d06f02ced837b423c725943c73f7d6f428a
scd: PC/SC pinpad input improvement.

* scd/apdu.c (struct reader_table_s): Add members: PINMIN, PINMAX, and
PINPAD_VERLEN_SUPPORTED.
(CM_IOCTL_VENDOR_IFD_EXCHANGE, FEATURE_GET_TLV_PROPERTIES,
PCSCv2_PART10_PROPERTY_*): New.
(new_reader_slot): Initialize pinpad_varlen_supported, pinmin, pinmax.
(pcsc_vendor_specific_init): New.
(open_pcsc_reader_direct, open_pcsc_reader_wrapped): Call
pcsc_vendor_specific_init.
(check_pcsc_pinpad): Not detect here but use the result of
pcsc_vendor_specific_init.
(pcsc_pinpad_verify, pcsc_pinpad_modify): Specify bNumberMessage.

--

(cherry picked from commit 95a3bffeaf07e8bf9487d4b165c336d166236fc1)

Signed-off-by: NIIBE Yutaka
--
scd/apdu.c