aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Port to npth.npth-4Marcus Brinkmann2012-01-251-30/+43
| | | | | | | | | | | | | | | | | | | | | * configure.ac: Don't check for PTH but for NPTH. (AH_BOTTOM): Remove PTH_SYSCALL_SOFT. (have_pth): Rename to ... (have_npth): ... this. (USE_GNU_NPTH): Rename to ... (USE_GNU_PTH): ... this. * m4/npth.m4: New file. * agent/Makefile.am, agent/cache.c, agent/call-pinentry.c, agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c, agent/trustlist.c, common/Makefile.am, common/estream.c, common/exechelp-posix.c, common/exechelp-w32.c, common/exechelp-w32ce.c, common/http.c, common/init.c, common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c, dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c, dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am, g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am, scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c, scd/scdaemon.c, tools/Makefile.am: Port to npth.
* Merge ccid_driver_improvement branch.NIIBE Yutaka2012-01-061-4/+4
| | | | | | | | | | | * scd/apdu.c (ccid_keypad_operation): Rename from ccid_keypad_verify. (open_ccid_reader): Use ccid_keypad_operation for verify and modify. * scd/ccid-driver.c (VENDOR_VASCO, VASCO_920): New. (ccid_transceive_apdu_level): Permit sending packet where apdulen <= 289. Support receiving packets in a chain. (ccid_transceive_secure): Maximum is 15 for VASCO DIGIPASS 920. Support keypad_modify method such as CHANGE_REFERENCE_DATA: 0x24.
* Add error log and debug log for pcsc_keypad_verify and pcsc_keypad_modify.NIIBE Yutaka2011-12-201-4/+22
| | | | | * scd/apdu.c (pcsc_keypad_verify): Add debug log and error log. (pcsc_keypad_modify): Likewise.
* scd: Fix for card change returning GPG_ERR_CARD_RESET.Werner Koch2011-12-191-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]>
* scd: Add more status word values for documentation.Werner Koch2011-12-141-2/+5
|
* scd: Add debug option for reader function calls.Werner Koch2011-12-141-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.
* Fix detection of card removal and insertion.Werner Koch2011-12-121-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.
* Fix pinpad input support for passphrase modification.NIIBE Yutaka2011-12-021-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.
* PC/SC pinpad support (pinpad input for modify pass phrase with resetcode, by ↵NIIBE Yutaka2011-11-291-24/+27
| | | | admin).
* PC/SC pinpad support (pinpad input for modify pass phrase).NIIBE Yutaka2011-11-291-0/+111
|
* PC/SC pinpad support.NIIBE Yutaka2011-11-281-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.
* Fixed set but unused variable bugsWerner Koch2011-08-101-2/+1
|
* Lock scdaemon to CCID if once found.Werner Koch2011-02-231-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.
* Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch2011-02-041-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.
* Detect non operational readers.Werner Koch2011-01-251-3/+17
| | | | Backport from 2.0.
* Smartcard related updatesWerner Koch2010-11-171-9/+26
|
* Fix for extended length Le in decipherWerner Koch2009-09-031-2/+0
|
* Make bug reporting address easier changeable.Werner Koch2009-07-211-0/+1
|
* Add code to better handle unplugging of a reader.Werner Koch2009-07-161-1/+28
|
* * ccid-driver.c (struct ccid_driver_s): Add fields last_progress,Werner Koch2009-07-131-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.
* Reworked the estream memory buffer allocation.Werner Koch2009-06-291-0/+3
| | | | | Committed already posted patches for the v2 card.
* Make PIN changing code work for v2 cards.Werner Koch2009-05-201-3/+3
|
* Improved smartcard robustness.Werner Koch2009-05-131-24/+77
|
* Print keyid in gpg --list-packets.Werner Koch2009-05-131-2/+2
| | | | | | Add some not yet code to app-nks.c Changed batch mode expiration time computation
* More support for Netkey cards.Werner Koch2009-05-081-11/+44
| | | | | | Small changes to teh CCID driver. Support 2048 bit OpenPGP cards.
* Implement decryption for TCOS 3 cards.Werner Koch2009-03-301-57/+135
|
* Signing using Netkey 3 cards does now work.Werner Koch2009-03-261-2/+5
|
* Make sure not to leak file descriptors if running gpg-agent with aWerner Koch2009-03-191-11/+2
| | | | | command. Restore the signal mask to solve a problem in Mono.
* Fixed a nasty bug in scdaemon which led to a card reset if the card wasWerner Koch2009-02-251-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.
* Add limited support for NetKey 3.0 cards.Werner Koch2009-01-081-6/+6
|
* Fix card change detection.Werner Koch2009-01-051-2/+3
|
* Fixed some card related problems.Werner Koch2008-12-181-16/+12
|
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-201-0/+14
|
* Made scdaemon more robust on Windows.Werner Koch2008-10-151-4/+0
|
* SCD changes for PC/SC under W32.Werner Koch2008-10-141-399/+579
|
* 2008-09-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-09-281-2/+2
| | | | | * apdu.c (pcsc_get_status): Fix last change.
* Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-09-231-0/+7
| | | | | | | | | * apdu.c (pcsc_get_status): Be more relaxed with the usable flag under Windows. M scd/ChangeLog M scd/apdu.c
* Support the Certifciate DO of the v2 OpenPGP cards.Werner Koch2008-09-231-50/+100
|
* Fix APDU buffer problem under MAC OS.Werner Koch2008-08-111-6/+6
|
* Applied exact length hack.Werner Koch2007-08-011-2/+11
|
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-141-0/+2
| | | | | See the ChangeLogs for details.
* First steps towards supporting W32.Werner Koch2007-06-061-1/+0
| | | | | | | This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
* The Cherry XX44 keyboard's PINpad does now work.Werner Koch2007-03-071-1/+1
| | | | | DINSIG and NKS card applications are now also PIN pad aware.
* Preparing 2.0.1Werner Koch2006-11-281-2/+2
|
* No more warnings for AMD64 (at least when cross-compiling). Thus tehre is aWerner Koch2006-11-211-1/+1
| | | | | | | good chance that gpg2 will now work. Other cleanups. Updated gettext.
* Made some PIN pads work.Werner Koch2006-11-201-6/+16
| | | | | Some cleanups for 64 bit CPUs.
* Pth tweaks and improved estream.cWerner Koch2006-10-171-1/+1
|
* The big Assuan error code removal.Werner Koch2006-09-061-1/+2
|
* Added command APDUWerner Koch2006-04-111-2/+2
|