diff options
author | NIIBE Yutaka <[email protected]> | 2011-11-28 07:16:38 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2011-11-28 07:16:38 +0000 |
commit | 26b4a012e3eb3a6ce79a1e53f7cdfbbdf8c8e8f5 (patch) | |
tree | aac121767d2bcf7d987ee412d75ce1184d7fe005 /scd/apdu.h | |
parent | Merge branch 'master' of git+ssh://playfair.gnupg.org/git/gnupg (diff) | |
download | gnupg-26b4a012e3eb3a6ce79a1e53f7cdfbbdf8c8e8f5.tar.gz gnupg-26b4a012e3eb3a6ce79a1e53f7cdfbbdf8c8e8f5.zip |
PC/SC pinpad support.
Before this change, it is layered like following:
iso7816_verify
iso7816_verify_kp
apdu_send_simple, apdu_send_simple_kp
...
After this change, it will be layered like:
iso7816_verify iso7816_verify_kp
apdu_send_simple apdu_keypad_verify
...
and apdu_send_simple_kp will be deprecated.
For PC/SC API, we use:
SCardControl API to compose CCID PC_to_RDR_Secure message
SCardTransmit API to compose CCID PC_to_RDR_XfrBlock message
Considering the support of PC/SC, we have nothing to share between _kp
version of iso7816_* and no _kp version.
Diffstat (limited to 'scd/apdu.h')
-rw-r--r-- | scd/apdu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scd/apdu.h b/scd/apdu.h index 7c0188782..4dff9eb95 100644 --- a/scd/apdu.h +++ b/scd/apdu.h @@ -114,6 +114,9 @@ int apdu_get_status (int slot, int hang, unsigned int *status, unsigned int *changed); int apdu_check_keypad (int slot, int command, int pin_mode, int pinlen_min, int pinlen_max, int pin_padlen); +int apdu_keypad_verify (int slot, int class, int ins, int p0, int p1, + int pin_mode, int pinlen_min, int pinlen_max, + int pin_padlen); int apdu_send_simple (int slot, int extended_mode, int class, int ins, int p0, int p1, int lc, const char *data); |