aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c (unfollow)
Commit message (Collapse)AuthorFilesLines
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.
2006-10-17Pth tweaks and improved estream.cWerner Koch1-1/+1
2006-09-06The big Assuan error code removal.Werner Koch1-1/+2
2006-04-11Added command APDUWerner Koch1-2/+2
2006-03-01Fixed card removal problemsWerner Koch1-2/+2
2005-12-06Print warning for missing pcsc-wrapperWerner Koch1-1/+9
2005-11-28Preparing an interim releaseWerner Koch1-38/+138
2005-09-05Basically made Belgian EID cards work.Werner Koch1-9/+36
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-558/+0
2005-07-20* keylist.c (email_kludge): Reworked.Werner Koch1-2/+4
* certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf arg to unsigned. * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-1/+1
char * vs. unsigned char * warnings. The GNU coding standards used to say that these mismatches are okay and better than a bunch of casts. Obviously this has changed now.
2005-05-18Changed the scdaemon to handle concurrent sessions. AdjustedWerner Koch1-0/+4
gpg-agent accordingly. Code cleanups.
2005-04-27* configure.ac: Removed OpenSC detection and options.Werner Koch1-243/+3
* acinclude.m4: Ditto. * scdaemon.texi: Removed OpenSC specific options. * app-p15.c: New. Basic support for pkcs15 cards without OpenSC. There are quite a couple of things missing but at least I can use my old TCOS cards from the Aegypten-1 development for signing. * app.c (select_application): Detect pkcs15 applications. * Makefile.am (scdaemon_SOURCES): Removed card.c, card-common.h and card-p15.c because they are now obsolete. Added app-p15.c. Removed all OpenSC stuff. * command.c (do_reset, open_card, cmd_serialno, cmd_learn) (cmd_readcert, cmd_readkey, cmd_pksign, cmd_pkdecrypt): Removed all special cases for the old card.c based mechanisms. * scdaemon.c, apdu.c: Removed all special cases for OpenSC.
2005-02-24* gpg-agent.c (handle_connections): Need to check for events ifWerner Koch1-176/+243
select returns with -1. * tools.texi (gpg-connect-agent): New. * app-openpgp.c (get_one_do): Never try to get a non cacheable object from the cache. (get_one_do): Add new arg to return an error code. Changed all callers. (do_getattr): Let it return a proper error code. * app.c (select_application): Return an error code and the application context in an new arg. * command.c (open_card): Adjusted for that. Don't use the fallback if no card is present. Return an error if the card has been removed without a reset. (do_reset, cmd_serialno): Clear that error flag. (TEST_CARD_REMOVAL): New. Use it with all command handlers. * scdaemon.c (ticker_thread): Termintate if a shutdown is pending. * apdu.c: Added some PCSC error codes. (pcsc_error_to_sw): New. (reset_pcsc_reader, pcsc_get_status, pcsc_send_apdu) (open_pcsc_reader): Do proper error code mapping. * gpg-connect-agent.c: New. * Makefile.am: Add it.
2005-02-03Forgot to commit the recent fixed to scd and logging - doing it nowWerner Koch1-4/+8
2004-12-15A whole bunch of changes to allow building for W32.Werner Koch1-1/+6
2004-10-20* sc-investigate: Removed.Werner Koch1-35/+453
* Makefile.am (sc_investigate): Removed. * pcsc-wrapper.c (load_pcsc_driver): Load get_status_change func. (handle_open): Succeed even without a present card. (handle_status, handle_reset): New. * apdu.c (apdu_open_reader): Load pcsc_get_status_change fucntion. (pcsc_get_status): Implemented. (reset_pcsc_reader): Implemented. (open_pcsc_reader): Succeed even with no card inserted. (open_ccid_reader): Set LAST_STATUS. * iso7816.c (iso7816_select_application): Always use 0 for P1.
2004-10-14Added ID keywords because these files are often used in other packages.Werner Koch1-0/+2