aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-12-14scd: Add debug option for reader function calls.Werner Koch1-1/+3
* 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-13scd: Introduce a virtual reader table.Werner Koch1-3/+0
The vreader table makes the code more clear by explicitly talking about APDU slots and reader indices. It also accommodates for future extensions. * scd/scdaemon.h (server_control_s): Remove READER_SLOT. * scd/scdaemon.c (scd_init_default_ctrl): Do not init READER_SLOT. * scd/app.c (check_application_conflict): Add arg SLOT. * scd/command.c (slot_status_s): Rename to vreader_s. (server_local_s): Add field VREADER_IDX as replacement for the READER_SLOT in server_control_s. Change all users. (slot_table): Rename to vreader_table. Change all users. (vreader_slot): New. (do_reset, cmd_apdu): Map vreader to apdu slot. (get_reader_slot): Rename to get_current_reader. Return -1 on error. (open_card): Map vreader toapdu slot. Pass slot to check_application_conflict. (scd_command_handler): Init VREADER_IDX. (update_reader_status_file): Reset SLOT field on error.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-7/+7
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.
2009-03-26Signing using Netkey 3 cards does now work.Werner Koch1-1/+1
2009-03-10Add new attribute KEY-ATTR.Werner Koch1-0/+1
2008-12-05Add option --card-timeout.Werner Koch1-0/+1
Add a new attribyte to app-openpgp.c Fix two portability bugs. Have gpg-connect-agent autostart gpg-agent on W32.
2008-10-15Made scdaemon more robust on Windows.Werner Koch1-1/+1
2008-09-29Remove hacks which are not anymore needed since we now require Libgcrypt 1.4Werner Koch1-3/+3
2007-11-19Started to implement the audit log feature.Werner Koch1-1/+0
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-2/+2
Made socket servers secure under Windows.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-21Implemented the --gen-key command as we can't use the gpgsm-gencert.sh under ↵Werner Koch1-1/+0
Windows.
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-0/+1
See the ChangeLogs for details.
2006-11-20Made some PIN pads work.Werner Koch1-2/+7
Some cleanups for 64 bit CPUs.
2006-10-24Preparing another releasegnupg-1.9.94Werner Koch1-1/+11
2006-10-10Various changesWerner Koch1-1/+2
2006-09-06The big Assuan error code removal.Werner Koch1-8/+3
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2005-11-28Preparing an interim releaseWerner Koch1-8/+9
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-127/+0
2005-06-03* command.c (cmd_updatestartuptty): New.Werner Koch1-7/+16
* 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-05-18Changed the scdaemon to handle concurrent sessions. AdjustedWerner Koch1-1/+2
gpg-agent accordingly. Code cleanups.
2005-04-27* configure.ac: Removed OpenSC detection and options.Werner Koch1-25/+0
* 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.
2004-12-18Avoid the " map_to_assuan_status called with no error source" diagnostic.Werner Koch1-0/+3
2004-08-05* configure.ac: Changed tests for libusb to also suuport theWerner Koch1-0/+2
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-04-20* pcsc-wrapper.c: New.Werner Koch1-0/+2
* Makefile.am (pkglib_PROGRAMS): Install it here. * apdu.c (writen, readn): New. (open_pcsc_reader, pcsc_send_apdu, close_pcsc_reader): Use the pcsc-wrapper if we are using Pth.
2004-03-16*** empty log message ***Werner Koch1-8/+0
2004-01-27Some minor bug fixes, new test utilities and started support for otherWerner Koch1-0/+3
smartcard applications.
2003-12-01* scdaemon.c, scdaemon.h: New options --allow-admin and --deny-admin.Werner Koch1-0/+2
* app-openpgp.c (verify_chv3): Check it here.
2003-09-02* configure.ac (HAVE_LIBUSB): Added a simple test for libusb.Werner Koch1-1/+2
* scdaemon.c, scdaemon.h: New option --pcsc-ccid. * ccid-driver.c, ccid-driver.h: New but far from being useful. * Makefile.am: Add above. * apdu.c: Add support for that ccid driver.
2003-08-19* scdaemon.c, scdaemon.h: New option --pcsc-driver.Werner Koch1-0/+1
* apdu.c (apdu_open_reader): Use that option here instead of a hardcoded one.
2003-08-18* Makefile.am: Add OPENSC_LIBS to all programs.Werner Koch1-0/+1
* scdaemon.c, scdaemon.h: New option --disable-opensc. * card.c (card_open): Implement it. * apdu.c (open_osc_reader, osc_send_apdu): New. (apdu_open_reader) [HAVE_OPENSC]: Use the opensc driver if not disabled. (error_string) [HAVE_OPENSC]: Use sc_strerror. (send_apdu) [HAVE_OPENSC]: Call osc_apdu_send.
2003-08-05Cleanups, fixes and PC/SC supportWerner Koch1-0/+1
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+127
'GNUPG-1-9-BRANCH'.
2003-07-03* app-openpgp.c (do_setattr): Add setting of the URL.Werner Koch1-2/+2
(app_select_openpgp): Dump card data only in very verbose mode. (do_decipher): New.
2003-06-27Key generation and signing using the OpenPGP card does rudimentary work.Werner Koch1-0/+5
2003-06-03Make use of libgpg-errorWerner Koch1-1/+19
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-104/+0
'GNUPG-1-9-BRANCH'.
2002-08-16* scdaemon.c: Include i18n.h.Werner Koch1-0/+1
* card-common.h (struct p15_private_s): Forward declaration. Add it to card_ctx_s. * card.c (card_close): Make sure private data is released. (card_enum_certs): New. * card-p15.c (p15_release_private_data): New. (init_private_data): New to work around an OpenSC weirdness. (p15_enum_keypairs): Do an OpenSC get_objects only once. (p15_enum_certs): New. (card_p15_bind): Bind new function. * command.c (cmd_learn): Return information about the certificates.
2002-04-12* scdaemon.c: New option --debug-sc N.Werner Koch1-0/+1
* card.c (card_open): set it here. * card-p15.c (p15_prepare_key): Factored out common code from ... (p15_sign, p15_decipher): here and made the decryption work the regular way.
2002-03-18Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch1-7/+7
2002-03-06Decryption using a Cryptoflex card does now work.Werner Koch1-1/+5
2002-03-05Well and some stuff to access the SC will be helpful. Note, that theWerner Koch1-0/+6
code requires the latest OpenSC CVS code.
2002-03-04Added more code fragments.Werner Koch1-0/+4
2002-02-28Changes needed to support smartcards. Well, only _support_. There isWerner Koch1-0/+5
no real code yet.
2002-02-18Some experimental code - don't use it.Werner Koch1-1/+10
2002-01-26* scdaemon.c scdaemon.h, command.c: New. Based on the code fromWerner Koch1-62/+9
the gpg-agent.
2002-01-20* command.c (cmd_get_passphrase): Remove the plus signs.Werner Koch1-0/+1
* query.c (start_pinentry): Send no-grab option to pinentry * gpg-agent.c (main): Move variable grab as no_grab to agent.h.
2002-01-19* gpg-agent.c (main): Disable core dumps.Werner Koch1-0/+6
* cache.c: New. * command.c (cmd_get_passphrase): Use the cache. (cmd_clear_passphrase): Ditto. * gpg-agent.c: Removed unused cruft and implement the socket based server. (my_strusage): Take bug report address from configure.ac. * command.c (start_command_handler): Add an argument to start as regular server. (start_command_handler): Enable Assuan logging.
2002-01-19* gpg-agent.c: Removed unused cruft and implement the socketWerner Koch1-1/+3
based server. (my_strusage): Take bug report address from configure.ac. * command.c (start_command_handler): Add an argument to start as regular server. (start_command_handler): Enable Assuan logging.