aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* scd: Add debug option for reader function calls.Werner Koch2011-12-141-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.
* scd: Introduce a virtual reader table.Werner Koch2011-12-131-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.
* Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch2011-02-041-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.
* Signing using Netkey 3 cards does now work.Werner Koch2009-03-261-1/+1
|
* Add new attribute KEY-ATTR.Werner Koch2009-03-101-0/+1
|
* Add option --card-timeout.Werner Koch2008-12-051-0/+1
| | | | | | | Add a new attribyte to app-openpgp.c Fix two portability bugs. Have gpg-connect-agent autostart gpg-agent on W32.
* Made scdaemon more robust on Windows.Werner Koch2008-10-151-1/+1
|
* Remove hacks which are not anymore needed since we now require Libgcrypt 1.4Werner Koch2008-09-291-3/+3
|
* Started to implement the audit log feature.Werner Koch2007-11-191-1/+0
| | | | | | | | Pass PINENTRY_USER_DATA and XAUTHORITY to Pinentry. Improved support for the quality bar. Minor internal restructuring. Translation fixes.
* Use Assuan socket wrapper calls.Werner Koch2007-10-011-2/+2
| | | | | Made socket servers secure under Windows.
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* Implemented the --gen-key command as we can't use the gpgsm-gencert.sh under ↵Werner Koch2007-06-211-1/+0
| | | | Windows.
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-141-0/+1
| | | | | See the ChangeLogs for details.
* Made some PIN pads work.Werner Koch2006-11-201-2/+7
| | | | | Some cleanups for 64 bit CPUs.
* Preparing another releasegnupg-1.9.94Werner Koch2006-10-241-1/+11
|
* Various changesWerner Koch2006-10-101-1/+2
|
* The big Assuan error code removal.Werner Koch2006-09-061-8/+3
|
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* Preparing an interim releaseWerner Koch2005-11-281-8/+9
|
* * command.c (cmd_updatestartuptty): New.Werner Koch2005-06-031-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.
* Changed the scdaemon to handle concurrent sessions. AdjustedWerner Koch2005-05-181-1/+2
| | | | | gpg-agent accordingly. Code cleanups.
* * configure.ac: Removed OpenSC detection and options.Werner Koch2005-04-271-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.
* Avoid the " map_to_assuan_status called with no error source" diagnostic.Werner Koch2004-12-181-0/+3
|
* * configure.ac: Changed tests for libusb to also suuport theWerner Koch2004-08-051-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.
* * pcsc-wrapper.c: New.Werner Koch2004-04-201-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.
* *** empty log message ***Werner Koch2004-03-161-8/+0
|
* Some minor bug fixes, new test utilities and started support for otherWerner Koch2004-01-271-0/+3
| | | | | smartcard applications.
* * scdaemon.c, scdaemon.h: New options --allow-admin and --deny-admin.Werner Koch2003-12-011-0/+2
| | | | | * app-openpgp.c (verify_chv3): Check it here.
* * configure.ac (HAVE_LIBUSB): Added a simple test for libusb.Werner Koch2003-09-021-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.
* * scdaemon.c, scdaemon.h: New option --pcsc-driver.Werner Koch2003-08-191-0/+1
| | | | | | * apdu.c (apdu_open_reader): Use that option here instead of a hardcoded one.
* * Makefile.am: Add OPENSC_LIBS to all programs.Werner Koch2003-08-181-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.
* Cleanups, fixes and PC/SC supportWerner Koch2003-08-051-0/+1
|
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-051-0/+127
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-191-104/+0
| | | | 'GNUPG-1-9-BRANCH'.
* * scdaemon.c: Include i18n.h.Werner Koch2002-08-161-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.
* * scdaemon.c: New option --debug-sc N.Werner Koch2002-04-121-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.
* Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch2002-03-181-7/+7
|
* Decryption using a Cryptoflex card does now work.Werner Koch2002-03-061-1/+5
|
* Well and some stuff to access the SC will be helpful. Note, that theWerner Koch2002-03-051-0/+6
| | | | | code requires the latest OpenSC CVS code.
* Added more code fragments.Werner Koch2002-03-041-0/+4
|
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-281-0/+5
| | | | | no real code yet.
* Some experimental code - don't use it.Werner Koch2002-02-181-1/+10
|
* * scdaemon.c scdaemon.h, command.c: New. Based on the code fromWerner Koch2002-01-261-0/+74
the gpg-agent.