diff options
author | NIIBE Yutaka <[email protected]> | 2013-01-07 05:20:55 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2013-02-05 04:35:44 +0000 |
commit | ca89277cb4cb9558da97a71a4cb070cb77c9b536 (patch) | |
tree | f759a3f1373fc39caf9be2398ccbf18f77301260 /scd/ccid-driver.h | |
parent | SCD: Add option enable-keypad-varlen and support for GEMPC_PINPAD. (diff) | |
download | gnupg-ca89277cb4cb9558da97a71a4cb070cb77c9b536.tar.gz gnupg-ca89277cb4cb9558da97a71a4cb070cb77c9b536.zip |
SCD: Clean up. Remove PADLEN for keypad input.
* scd/apdu.c (struct pininfo_s): Use iso7816_pininfo_s.
(struct reader_table_s): Remove last arg from check_keypad method.
(check_pcsc_keypad, check_pcsc_keypad): Remove PIN_PADLEN.
(pcsc_keypad_verify, pcsc_keypad_modify): Don't check PIN_PADLEN.
(send_apdu_ccid, ccid_keypad_operation): Remove PIN_PADLEN.
(apdu_check_keypad, apdu_keypad_verify, apdu_keypad_modify):
Likewise.
* scd/apdu.h (apdu_check_keypad, apdu_keypad_verify)
(apdu_keypad_modify): Remove PIN_PADLEN.
* scd/ccid-driver.c (ccid_transceive_secure): Remove PIN_PADLEN.
* scd/ccid-driver.h (ccid_transceive_secure): Remove PIN_PADLEN.
* scd/iso7816.c (iso7816_check_keypad, iso7816_verify_kp)
(iso7816_change_reference_data_kp): Remove PADLEN.
* scd/iso7816.h (struct iso7816_pininfo_s): Remove PADLEN, PADCHAR.
--
In the OpenPGPcard specification, password comes with no padding. In
GnuPG, we support keypad input for OpenPGPcard only. Thus, it is
useless to try to support padding for keypad input.
Diffstat (limited to 'scd/ccid-driver.h')
-rw-r--r-- | scd/ccid-driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/ccid-driver.h b/scd/ccid-driver.h index 121cb945b..e0f48952d 100644 --- a/scd/ccid-driver.h +++ b/scd/ccid-driver.h @@ -94,7 +94,7 @@ int ccid_transceive (ccid_driver_t handle, int ccid_transceive_secure (ccid_driver_t handle, const unsigned char *apdu, size_t apdulen, int pin_mode, - int pinlen_min, int pinlen_max, int pin_padlen, + int pinlen_min, int pinlen_max, unsigned char *resp, size_t maxresplen, size_t *nresp); int ccid_transceive_escape (ccid_driver_t handle, const unsigned char *data, size_t datalen, |