aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-12-20Add error log and debug log for pcsc_keypad_verify and pcsc_keypad_modify.NIIBE Yutaka1-4/+22
* scd/apdu.c (pcsc_keypad_verify): Add debug log and error log. (pcsc_keypad_modify): Likewise.
2011-12-19scd: Fix for card change returning GPG_ERR_CARD_RESET.Werner Koch1-2/+1
* scd/apdu.c (apdu_connect): Do not test for zero atrlen. -- When gpg-agent prompts for insertion of a card this error would be returned. Co-authored-by: Ben Kibbey <[email protected]>
2011-12-14scd: Add more status word values for documentation.Werner Koch1-2/+5
2011-12-14scd: Add debug option for reader function calls.Werner Koch1-65/+140
* scd/scdaemon.h (DBG_READER_VALUE, DBG_READER): New. * scd/apdu.c (apdu_open_reader, apdu_close_reader) (apdu_shutdown_reader, apdu_connect, apdu_disconnect) (apdu_reset, apdu_get_atr, apdu_get_status): Add debug code. (apdu_activate): Remove this unused function.
2011-12-12Fix detection of card removal and insertion.Werner Koch1-2/+13
* scd/apdu.c (apdu_connect): Return status codes for no card available and inactive card. * scd/command.c (TEST_CARD_REMOVAL): Also test for GPG_ERR_CARD_RESET. (open_card): Map apdu_connect status to GPG_ERR_CARD_RESET.
2011-12-02Fix pinpad input support for passphrase modification.NIIBE Yutaka1-31/+13
* 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.
2011-12-02PC/SC pinpad support (pinpad input for modify pass phrase with resetcode, by ↵NIIBE Yutaka1-24/+27
admin).
2011-12-02PC/SC pinpad support (pinpad input for modify pass phrase).NIIBE Yutaka1-0/+111
2011-12-02PC/SC pinpad support.NIIBE Yutaka1-3/+359
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.
2011-12-02Fix pinpad input support for passphrase modification.NIIBE Yutaka1-31/+13
* 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.
2011-11-29PC/SC pinpad support (pinpad input for modify pass phrase with resetcode, by ↵NIIBE Yutaka1-24/+27
admin).
2011-11-29PC/SC pinpad support (pinpad input for modify pass phrase).NIIBE Yutaka1-0/+111
2011-11-28PC/SC pinpad support.NIIBE Yutaka1-3/+359
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.
2011-10-13Initial port to Npth.Marcus Brinkmann1-30/+41
2011-08-10Fixed set but unused variable bugsWerner Koch1-2/+1
2011-02-23Lock scdaemon to CCID if once found.Werner Koch1-2/+16
This solves a problem where ccid was used, the card unplugged and then scdaemon tries to find a new (plugged in) reader and thus will eventually try PC/SC over and over again. Also added an explicit --kill command to gpgconf.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-25/+25
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2011-01-25Detect non operational readers.Werner Koch1-3/+17
Backport from 2.0.
2010-11-17Smartcard related updatesWerner Koch1-9/+26
2009-09-03Fix for extended length Le in decipherWerner Koch1-2/+0
2009-07-21Make bug reporting address easier changeable.Werner Koch1-0/+1
2009-07-16Add code to better handle unplugging of a reader.Werner Koch1-1/+28
2009-07-13* ccid-driver.c (struct ccid_driver_s): Add fields last_progress,Werner Koch1-1/+36
progress_cb and progress_cb_arg. (ccid_set_progress_cb): New. (print_progress): New. (ccid_transceive): Call print_progress for wait time extensions. * apdu.c (struct reader_table_s): Add field set_progress_cb. (new_reader_slot): Clear that field. (open_ccid_reader): Set it to .. (set_progress_cb_ccid_reader): ... new fucntion. * app.c (print_progress_line): New. (lock_reader): Add arg CTRL to set a progress callback and change all callers to provide it. (unlock_reader): Remove the progress callback.
2009-06-29Reworked the estream memory buffer allocation.Werner Koch1-0/+3
Committed already posted patches for the v2 card.
2009-05-20Make PIN changing code work for v2 cards.Werner Koch1-3/+3
2009-05-13Improved smartcard robustness.Werner Koch1-24/+77
2009-05-13Print keyid in gpg --list-packets.Werner Koch1-2/+2
Add some not yet code to app-nks.c Changed batch mode expiration time computation
2009-05-08More support for Netkey cards.Werner Koch1-11/+44
Small changes to teh CCID driver. Support 2048 bit OpenPGP cards.
2009-03-30Implement decryption for TCOS 3 cards.Werner Koch1-57/+135
2009-03-26Signing using Netkey 3 cards does now work.Werner Koch1-2/+5
2009-03-19Make sure not to leak file descriptors if running gpg-agent with aWerner Koch1-11/+2
command. Restore the signal mask to solve a problem in Mono.
2009-02-25Fixed a nasty bug in scdaemon which led to a card reset if the card wasWerner Koch1-6/+28
inserted during scdaemon startup and a connection was made before the ticker had a chance to run. Add some stuff for better debugging.
2009-01-08Add limited support for NetKey 3.0 cards.Werner Koch1-6/+6
2009-01-05Fix card change detection.Werner Koch1-2/+3
2008-12-18Fixed some card related problems.Werner Koch1-16/+12
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-0/+14
2008-10-15Made scdaemon more robust on Windows.Werner Koch1-4/+0
2008-10-14SCD changes for PC/SC under W32.Werner Koch1-399/+579
2008-09-282008-09-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+2
* apdu.c (pcsc_get_status): Fix last change.
2008-09-23Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+7
* apdu.c (pcsc_get_status): Be more relaxed with the usable flag under Windows. M scd/ChangeLog M scd/apdu.c
2008-09-23Support the Certifciate DO of the v2 OpenPGP cards.Werner Koch1-50/+100
2008-08-11Fix APDU buffer problem under MAC OS.Werner Koch1-6/+6
2007-08-01Applied exact length hack.Werner Koch1-2/+11
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-0/+2
See the ChangeLogs for details.
2007-06-06First steps towards supporting W32.Werner Koch1-1/+0
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-03-07The Cherry XX44 keyboard's PINpad does now work.Werner Koch1-1/+1
DINSIG and NKS card applications are now also PIN pad aware.
2006-11-28Preparing 2.0.1Werner Koch1-2/+2
2006-11-21No more warnings for AMD64 (at least when cross-compiling). Thus tehre is aWerner Koch1-1/+1
good chance that gpg2 will now work. Other cleanups. Updated gettext.
2006-11-20Made some PIN pads work.Werner Koch1-6/+16
Some cleanups for 64 bit CPUs.