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:06:50 +0000 (11:06 +0900)
commit95a3bffeaf07e8bf9487d4b165c336d166236fc1
tree85c1d19be8b48b4a377931b8514adaddcdf58da7
parentcc67918c088e90c1d9a507af5f6288e8faa93d87
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.

--

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