aboutsummaryrefslogtreecommitdiffstats
path: root/scd/iso7816.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-15Fix pinpad input support for passphrase modification. (backport)NIIBE Yutaka1-4/+1
* apdu.c (pcsc_keypad_verify): Have dummy Lc field with value 0. (pcsc_keypad_modify): Likewise. (pcsc_keypad_modify): It's only for ISO7816_CHANGE_REFERENCE_DATA. bConfirmPIN value is determined by the parameter p0. * app-openpgp.c (do_change_pin): The flag use_keypad should be 0 when reset_mode is on, or resetcode is on. use_keypad only makes sense for iso7816_change_reference_data_kp. * iso7816.h (iso7816_put_data_kp): Remove. (iso7816_reset_retry_counter_kp): Remove. (iso7816_reset_retry_counter_with_rc_kp): Remove. (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE. * iso7816.c (iso7816_put_data_kp): Remove. (iso7816_reset_retry_counter_kp): Remove. (iso7816_reset_retry_counter_with_rc_kp): Remove. (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
2012-06-15scd: PC/SC pinpad support (pinpad input for modify pass phrase). (backport)NIIBE Yutaka1-3/+1
* 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.
2012-06-15scd: PC/SC pinpad support. (Backported from master.)NIIBE Yutaka1-3/+1
* iso7816.h (iso7816_verify_kp): Remove arguments of CHV and CHVLEN. * iso7816.c (iso7816_verify_kp): Call apdu_keypad_verify. Only handle thecase with PININFO. (iso7816_verify): Call apdu_send_simple. * app-openpgp.c (verify_a_chv, verify_chv3): Follow the change of iso7816_verify_kp. * app-nks.c (verify_pin): Likewise. * app-dinsig.c (verify_pin): Likewise. * apdu.c: Include "iso7816.h". (struct reader_table_s): New memeber function keypad_verify. Add fields verify_ioctl and modify_ioctl in pcsc. (CM_IOCTL_GET_FEATURE_REQUEST, FEATURE_VERIFY_PIN_DIRECT) (FEATURE_MODIFY_PIN_DIRECT): New. (pcsc_control): New. (control_pcsc_direct, control_pcsc_wrapped, control_pcsc) (check_pcsc_keypad, pcsc_keypad_verify): New. (ccid_keypad_verify, apdu_keypad_verify): New. (new_reader_slot): Initialize with check_pcsc_keypad, pcsc_keypad_verify, verify_ioctl and modify_ioctl. (open_ct_reader): Initialize keypad_verify with NULL. (open_ccid_reader): Initialize keypad_verify. (open_rapdu_reader): Initialize keypad_verify with NULL. (apdu_open_reader): Initialize pcsc_control. * pcsc-wrapper.c (load_pcsc_driver): Initialize pcsc_control. (handle_control): New. (main): Handle the case 6 of handle_control.
2009-09-03Fix for extended length Le in decipherWerner Koch1-5/+3
2009-07-10Fix for card keys > 2048 bit.Werner Koch1-2/+4
2009-06-17Add readcert command.Werner Koch1-1/+1
fix reading large certificates.
2009-05-08More support for Netkey cards.Werner Koch1-6/+8
Small changes to teh CCID driver. Support 2048 bit OpenPGP cards.
2009-03-30Implement decryption for TCOS 3 cards.Werner Koch1-1/+1
2009-01-08Add limited support for NetKey 3.0 cards.Werner Koch1-0/+4
2008-09-25Finished support for v2 cards with the exception of secure messaging.Werner Koch1-0/+5
2008-09-23Support the Certifciate DO of the v2 OpenPGP cards.Werner Koch1-1/+1
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2005-11-28Preparing an interim releaseWerner Koch1-1/+34
2005-09-09Bug fixes and ssh support for the BELPIC.Werner Koch1-1/+2
2005-09-05Basically made Belgian EID cards work.Werner Koch1-0/+3
Signature creation has not yet been tested. Also other changes to better cope with T=0 cards.
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-56/+0
2004-10-14Added ID keywords because these files are often used in other packages.Werner Koch1-0/+4
2004-03-16*** empty log message ***Werner Koch1-0/+1
2004-01-28(iso7816_manage_security_env): New.Werner Koch1-0/+4
(iso7816_decipher): Add PADIND argument. ** app-nks.c is now functional **
2004-01-27Some minor bug fixes, new test utilities and started support for otherWerner Koch1-0/+8
smartcard applications.
2003-10-02Fixes to make inclusion of card raleted source files into 1.3 easier.Werner Koch1-0/+4
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+56
'GNUPG-1-9-BRANCH'.
2003-07-23* command.c (cmd_pkauth): New.Werner Koch1-20/+28
(cmd_setdata): Check whether data was given at all to avoid passing 0 to malloc. * app.c (app_auth): New. * app-openpgp.c (do_auth): New.
2003-06-03* scdaemon.h: Include gpg-error.h and errno.hWerner Koch1-0/+48
* card.c (map_sc_err): Use unknown for the error source. * Makefile.am: Link with libgpg-error