aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-07-21Make bug reporting address easier changeable.Werner Koch1-2/+2
2009-07-16Add code to better handle unplugging of a reader.Werner Koch1-0/+2
2009-05-19Fix possible system freeze on Mac OS X.Werner Koch1-2/+2
2009-02-25Fixed a nasty bug in scdaemon which led to a card reset if the card wasWerner Koch1-10/+26
inserted during scdaemon startup and a connection was made before the ticker had a chance to run. Add some stuff for better debugging.
2009-02-19Fix bug 1001.Werner Koch1-1/+1
Documentation updates.
2009-01-28Make --allow-admin the default.Werner Koch1-5/+7
2008-12-09Minor fixes.Werner Koch1-1/+1
2008-12-08Align ticker to the full or half second.Werner Koch1-6/+20
2008-12-05Add option --card-timeout.Werner Koch1-35/+48
Add a new attribyte to app-openpgp.c Fix two portability bugs. Have gpg-connect-agent autostart gpg-agent on W32.
2008-11-18Print library versions according to GNU standards.Werner Koch1-0/+30
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-1/+1
2008-10-15Made scdaemon more robust on Windows.Werner Koch1-10/+12
2008-10-14SCD changes for PC/SC under W32.Werner Koch1-10/+14
2008-08-312008-08-30 Moritz <[email protected]>Moritz Schulte1-3/+3
* scdaemon.c (main): Use estream_asprintf instead of asprintf. * command.c (update_reader_status_file): Likewise. (cmd_serialno): Use estream_asprintf instead of asprintf and xfree instead of free to release memory allocated through (estream_)asprintf. (cmd_learn): Likewise. (pin_cb): Likewise. * app-openpgp.c (get_public_key): Likewise.
2008-02-092008-02-09 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+4
* scdaemon.c (main): Use CONFIG_FILENAME as filename if it is set in gpgconf-list output.
2007-11-19Started to implement the audit log feature.Werner Koch1-5/+12
Pass PINENTRY_USER_DATA and XAUTHORITY to Pinentry. Improved support for the quality bar. Minor internal restructuring. Translation fixes.
2007-10-01Use Assuan socket wrapper calls.Werner Koch1-36/+41
Made socket servers secure under Windows.
2007-09-142007-09-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+8
* scdaemon.c (main): New variable STANDARD_SOCKET, which is 1 for W32 targets. Use it for create_socket_name.
2007-08-02Factored common gpgconf constants outWerner Koch1-17/+4
Fixed W32 compare_filenames
2007-07-04Changed to GPLv3.Werner Koch1-4/+7
Removed intl/.
2007-07-04A bunch of minor changes for Windows.Werner Koch1-5/+21
2007-06-20[w32] gpg-agent is now started automagically by gpgsm.Werner Koch1-1/+1
2007-06-19Made percent_escape more general.Werner Koch1-1/+1
Added regression tests support to jnlib. W32 changes.
2007-06-18jnlib/Marcus Brinkmann1-4/+9
2007-06-18 Marcus Brinkmann <[email protected]> * stringhelp.h (percent_escape): New prototype. * stringhelp.c (percent_escape): New function. agent/ 2007-06-18 Marcus Brinkmann <[email protected]> * gpg-agent.c (main): Percent escape pathname in --gpgconf-list output. g10/ 2007-06-18 Marcus Brinkmann <[email protected]> * gpg.c (gpgconf_list): Percent escape output of --gpgconf-list. scdaemon/ 2007-06-18 Marcus Brinkmann <[email protected]> * scdaemon.c (main): Percent escape output of --gpgconf-list. sm/ 2007-06-18 Marcus Brinkmann <[email protected]> * gpgsm.c (main): Percent escape output of --gpgconf-list.
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-2/+7
See the ChangeLogs for details.
2007-06-06First steps towards supporting W32.Werner Koch1-15/+0
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-04-20Improved logging for error orginating from libgcrypt.Werner Koch1-22/+2
2007-02-18doc/Werner Koch1-1/+3
* gpg.texi (GPG Esoteric Options): No card reader options for gpg2. scd/ * scdaemon.c (DEFAULT_PCSC_DRIVER): Add a default for OS X.
2006-11-20Made some PIN pads work.Werner Koch1-10/+39
Some cleanups for 64 bit CPUs.
2006-10-23.Werner Koch1-0/+5
2006-09-06The big Assuan error code removal.Werner Koch1-0/+2
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2006-04-11Added command APDUWerner Koch1-0/+2
2005-11-28Preparing an interim releaseWerner Koch1-1/+5
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-638/+0
2005-07-20* keylist.c (email_kludge): Reworked.Werner Koch1-0/+2
* certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf arg to unsigned. * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
2005-06-07New debugging optionhs, updates to the manual.Werner Koch1-0/+18
2005-06-03* command.c (cmd_updatestartuptty): New.Werner Koch1-7/+26
* gpg-agent.c: New option --write-env-file. * gpg-agent.c (handle_connections): Make sure that the signals we are handling are not blocked.Block signals while creating new threads. * estream.c: Use HAVE_CONFIG_H and not USE_CONFIG_H! (es_func_fd_read, es_func_fd_write): Protect against EINTR. * gpg-agent.texi (Agent UPDATESTARTUPTTY): New. * scdaemon.c (handle_connections): Make sure that the signals we are handling are not blocked.Block signals while creating new threads. (handle_connections): Include the file descriptor into the name of the thread.
2005-06-01* configure.ac (gl_INIT): Add gnulib stuff.Werner Koch1-1/+1
(fseeko, ftello, ttyname, isascii): Replaced the AC_REPLACE_FUNCS by a simple check. (putc_unlocked): Removed check. Not used. (strsep, mkdtemp, asprintf): Replaced checks by gnulib checks. (xsize): Added will probably come handy soon. (CFLAGS): Use -Wformat-security instead of -Wformat-nonliteral. Add --Wno-format-y2k. * gl/, gl/m4/: New. * gpg-agent.c: Include setenv.h. * Makefile.am (AM_CPPFLAGS): Added. * util.h: Add some includes for gnulib. (ttyname, isascii): Define them inline. * fseeko.c, ftello.c: Removed. * strsep.c, mkdtemp.c: Removed. * ttyname.c, isascii.c: Removed. * mkdtemp.c: Removed. * exec.c: Include mkdtemp.h * keybox-file.c (ftello) [!HAVE_FSEEKO]: New replacement function. Copied from ../common/ftello.c. * keybox-update.c (fseeko) [!HAVE_FSEEKO]: New replacement function. Copied from ../common/iobuf.c. * scdaemon.c: Include mkdtemp.h. * misc.c: Include setenv.h. * symcryptrun.c: Include mkdtemp.h.
2005-05-21* call-scd.c (start_scd): Don't test for an alive scdaemon here.Werner Koch1-1/+2
(agent_scd_check_aliveness): New. * gpg-agent.c (handle_tick): Test for an alive scdaemon. (handle_signal): Print thread info on SIGUSR1. * scdaemon.c (handle_signal): Print thread info on SIGUSR1.
2005-05-20* protect-tool.c: New option --canonical.Werner Koch1-12/+21
(show_file): Implement it. * keyformat.txt: Define the created-at attribute for keys. * ccid-driver.c: Replaced macro DEBUG_T1 by a new debug level. (parse_ccid_descriptor): Mark SCR335 firmware version 5.18 good. (ccid_transceive): Arghhh. The seqno is another bit in the R-block than in the I block, this was wrong at one place. * scdaemon.c: New options --debug-ccid-driver and --debug-disable-ticker. * app-openpgp.c (do_genkey, do_writekey): Factored code to check for existing key out into .. (does_key_exist): .. New function. * gpg-connect-agent.c (add_definq, show_definq, clear_definq) (handle_inquire): New. (read_and_print_response): Handle INQUIRE command. (main): Implement control commands.
2005-05-18Changed the scdaemon to handle concurrent sessions. AdjustedWerner Koch1-169/+322
gpg-agent accordingly. Code cleanups.
2005-04-27* configure.ac: Removed OpenSC detection and options.Werner Koch1-21/+6
* 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-1/+2
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.
2004-12-21* gpg-agent.c (main): Use default_homedir().Werner Koch1-13/+3
* protect-tool.c (main): Ditto. * signal.c (got_fatal_signal, got_usr_signal) (got_fatal_signal) [DOSISH]: Don't build. * simple-gettext.c: Include sysutils.h * homedir.c: New. * Makefile.am (libcommon_a_SOURCES): Add it. (EXTRA_DIST): Removed mkerror and mkerrtok. * gpgv.c, g10.c (main): Use default_hoemdir (). * scdaemon.c (main): Use default_homedir(). * gpgsm.c (main): Use default_homedir().
2004-12-19* query.c (initialize_module_query):Werner Koch1-0/+5
* call-scd.c (initialize_module_call_scd): New. * w32-pth.c (pth_init): Enable debugging depending on env var. (pth_self): New. (pth_mutex_release, pth_mutex_acquire): Implemented directly using the W32 API.
2004-12-18* configure.ac (AH_BOTTOM): Define EXEEXT_S.Werner Koch1-6/+0
* autogen.sh: Updated --build-w32 feature. * gpg-agent.c (main): Remove special Pth initialize. * w32-pth.c (pth_init): Reverse return values. Use TRUE and FALSE constants. (pth_kill, pth_mutex_acquire, pth_attr_set, pth_join, pth_cancel): Ditto. * scdaemon.c (main) [W32]: Remove special Pth initialize..
2004-12-15A whole bunch of changes to allow building for W32.Werner Koch1-1/+39
2004-08-05* configure.ac: Changed tests for libusb to also suuport theWerner Koch1-0/+6
stable version 0.1.x. * scdaemon.texi (Card applications): New section. * scdaemon.c (main): New option --disable-application. * app.c (is_app_allowed): New. (select_application): Use it to check for disabled applications. * ccid-driver.h (CCID_DRIVER_ERR_ABORTED): New. * ccid-driver.c (ccid_open_reader): Support the stable 0.1 version of libusb. (ccid_get_atr): Handle short messages. * apdu.c (my_rapdu_get_status): Implemented.
2004-07-22* configure.ac: Define AM conditional HAVE_OPENSC.V1-9-10Werner Koch1-1/+8
* Makefile.am: Make OpenSC lib link after libgcrypt. Do not link to pth. * apdu.c: Don't use Pth if we use OpenSC. * sc-investigate.c, scdaemon.c: Disable use of pth if OpenSC is used. * scdaemon.c (main): Bumbed thread stack size up to 512k.