scd: PC/SC pinpad support (pinpad input for modify pass phrase). (backport)
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 29 Nov 2011 02:59:32 +0000 (11:59 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 25 Jun 2012 01:04:22 +0000 (10:04 +0900)
commitf98a5e8480b7dea6cc7ec3386a7bad74f3974871
tree6e69c23d8ac60ad057a107411afc4a0ff0d2e7f7
parentc2525d507d802e43861f3361ff58be4f41da27df
scd: PC/SC pinpad support (pinpad input for modify pass phrase). (backport)

* iso7816.h (iso7816_change_reference_data_kp): Remove arguments
of OLDCHV, OLDCHVLEN, NEWCHV, and NEWCHVLEN.

* iso7816.c (iso7816_change_reference_data_kp): Call
apdu_keypad_modify.
(iso7816_change_reference_data): Don't call
iso7816_change_reference_data_kp.

* apdu.h (apdu_keypad_modify): New.

* apdu.c (pcsc_keypad_modify, apdu_keypad_modify): New.
(struct reader_table_s): New memeber function keypad_modify.
(new_reader_slot, open_ct_reader, open_ccid_reader)
(open_rapdu_reader): Initialize keypad_modify.

* app-openpgp.c (do_change_pin): Handle keypad and call
iso7816_change_reference_data_kp if it is the case.
scd/apdu.c
scd/apdu.h
scd/app-openpgp.c
scd/iso7816.c
scd/iso7816.h