aboutsummaryrefslogtreecommitdiffstats
path: root/scd/command.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add option --card-timeout.Werner Koch2008-12-051-7/+11
| | | | | | | Add a new attribyte to app-openpgp.c Fix two portability bugs. Have gpg-connect-agent autostart gpg-agent on W32.
* Minor cleanups.Werner Koch2008-11-111-7/+28
|
* Fixed the card removed with cached app bug. (Famous last fix).Werner Koch2008-11-031-18/+23
|
* Use bin2hex if possible.Werner Koch2008-11-031-3/+1
|
* Cosmetic fixWerner Koch2008-10-291-1/+2
|
* 2008-10-21 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-10-211-1/+6
| | | | | | * command.c (open_card): If connect error is SW_HOST_NO_CARD, return a more descriptive error.
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-201-0/+6
|
* Use more warning options with modern GCCs.Werner Koch2008-10-171-0/+14
| | | | | Other minor changes.
* Made scdaemon more robust on Windows.Werner Koch2008-10-151-3/+7
|
* SCD changes for PC/SC under W32.Werner Koch2008-10-141-5/+38
|
* Support the Certifciate DO of the v2 OpenPGP cards.Werner Koch2008-09-231-35/+76
|
* 2008-08-30 Moritz <[email protected]>Moritz Schulte2008-08-311-14/+14
| | | | | | | | | | | | | * 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.
* Do not run the setuid test if running under as root proper.Werner Koch2008-07-171-1/+1
| | | | | | Documentation fixes. Some enhancements for the new OpenPGP Card.
* Add support for the TCOS NullPIN feature.Werner Koch2008-06-241-4/+10
|
* Extended gpg-connect-agent.Werner Koch2007-10-021-0/+8
| | | | | New "GETINFO pid" command for scdaemon and gpg-agent.
* Fixed card key generation of gpg2.Werner Koch2007-07-051-11/+62
| | | | | Reveal less information about timings while generating a key.
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* A bunch of minor changes for Windows.Werner Koch2007-07-041-1/+8
|
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-141-1/+19
| | | | | See the ChangeLogs for details.
* Add a way to get a listing of available CCID readers.Werner Koch2007-04-031-0/+21
|
* Final fix for rc1gnupg-2.0.1rc1Werner Koch2006-11-231-1/+1
|
* Made some PIN pads work.Werner Koch2006-11-201-18/+40
| | | | | Some cleanups for 64 bit CPUs.
* Fix for bug 537Werner Koch2006-10-021-1/+1
|
* 2006-10-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-10-021-1/+1
| | | | | | | * command.c (update_reader_status_file): Increase buffer of NUMBUF2 (fixing typo).
* Take advantage of newer gpg-error features.Werner Koch2006-09-141-2/+2
|
* Let scdaemon call a script on status changesWerner Koch2006-09-071-0/+43
|
* The big Assuan error code removal.Werner Koch2006-09-061-55/+51
|
* 2006-09-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-09-021-4/+10
| | | | | | | | * command.c (get_reader_slot): Return the slot_table index, not the APDU slot number. (update_reader_status_file): Use the slot_table index in the update_card_removed invocation.
* 2006-09-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-09-011-3/+31
| | | | | * command.c (cmd_getinfo): Handle status command.
* 2006-08-30 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-08-301-1/+4
| | | | | | * command.c (do_reset): Delay resetting CTRL->reader_slot until after update_card_removed invocation.
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* Added command APDUWerner Koch2006-04-111-0/+128
|
* Allo RMD160 signaturesWerner Koch2006-03-211-3/+25
|
* Fixed card removal problemsWerner Koch2006-03-011-124/+152
|
* PIN caching of cards does now work.Werner Koch2006-02-091-4/+45
|
* The BELPIC card does now work.Werner Koch2005-09-061-1/+1
|
* gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch2005-06-161-5/+5
| | | | | | | 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.
* New debugging optionhs, updates to the manual.Werner Koch2005-06-071-1/+2
|
* * command.c (cmd_updatestartuptty): New.Werner Koch2005-06-031-3/+3
| | | | | | | | | | | | | | | | | | | | * 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.
* * Makefile.am: Do not build sc-copykeys anymore.Werner Koch2005-05-231-2/+18
| | | | | | * app-openpgp.c (app_openpgp_storekey, app_openpgp_readkey) (app_openpgp_cardinfo): Removed.
* * protect-tool.c: New option --canonical.Werner Koch2005-05-201-2/+79
| | | | | | | | | | | | | | | | | | | | | | | | (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.
* Changed the scdaemon to handle concurrent sessions. AdjustedWerner Koch2005-05-181-7/+36
| | | | | gpg-agent accordingly. Code cleanups.
* * configure.ac: Removed OpenSC detection and options.Werner Koch2005-04-271-179/+44
| | | | | | | | | | | | | | | | | | | * 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.
* * configure.ac: Do not build gpg by default.Werner Koch2005-04-211-13/+13
| | | | | | | | | | | | * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check. * certchain.c (gpgsm_validate_chain): Make use of it. * certchain.c (gpgsm_validate_chain): Check revocations even for expired certificates. This is required because on signature verification an expired key is fine whereas a revoked one is not. * gpgconf-comp.c: Add gpgsm option disable-trusted-cert-crl-check.
* (retrieve_key_material): Rewritten. Return aWerner Koch2005-04-141-79/+282
| | | | | | | | | proper error code. (retrieve_next_token): Removed. (retrieve_fpr_from_card): Rewritten to make use of DO caching and to take the KEYNO as arg. (get_public_key): Renamed variable for clarity.
* * app-openpgp.c (do_check_pin): Add hack to allow verification ofWerner Koch2005-04-111-18/+48
| | | | | | | | CHV3. (get_public_key): Don't use gcry functions to create S-expressions. (do_deinit, do_readkey, do_genkey, send_keypair_info): Adjust for above change.
* * call-scd.c (unescape_status_string): New. Actual a copy ofWerner Koch2005-02-241-8/+16
| | | | | | | | | | | | | | | | | | | | | | ../g10/call-agent.c (card_getattr_cb, agent_card_getattr): New. * command-ssh.c (card_key_available): New. (ssh_handler_request_identities): First see whether a card key is available. * app.c (app_getattr): Return APPTYPE or SERIALNO type even if the application does dot support the getattr call. * 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. (scd_update_reader_status_file): Set the error flag on all changes.
* * gpg-agent.c (handle_connections): Need to check for events ifWerner Koch2005-02-241-18/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * app-openpgp.c (app_local_s): New field PK.Werner Koch2005-02-221-6/+28
| | | | | | | | | | | (do_deinit, do_genkey, app_openpgp_storekey): Clear it. (get_public_key, send_keypair_info): New. (do_learn_status): Send KEYPAIR info * app-common.h (app_ctx_t): Add function pointer READKEY. * app.c (app_readkey): New. * command.c (cmd_readkey): Use READKEY function if possible.
* * gpg-agent.c (main): Use default_homedir().Werner Koch2004-12-211-3/+1
| | | | | | | | | | | | | | | | | | | * 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().