aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-05-08More support for Netkey cards.Werner Koch1-0/+1
Small changes to teh CCID driver. Support 2048 bit OpenPGP cards.
2009-03-24Better syncronization of several smartcard sessions.Werner Koch1-9/+13
2009-03-18Add server option with-ephemeral-keys.Werner Koch1-2/+3
Extend SCD LEARN command.
2009-02-27Fix a gpg2 problem with removed cards.Werner Koch1-0/+1
Allow runtime conf change for scdaemon. New commands for scdaemon.
2009-01-27Add a Geldkarte gadget application.Werner Koch1-0/+3
Minor other changes.
2008-11-03Fixed the card removed with cached app bug. (Famous last fix).Werner Koch1-9/+8
2008-09-23Support the Certifciate DO of the v2 OpenPGP cards.Werner Koch1-2/+12
2008-06-24Add support for the TCOS NullPIN feature.Werner Koch1-1/+5
2007-07-05Fixed card key generation of gpg2.Werner Koch1-6/+8
Reveal less information about timings while generating a key.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2006-02-09PIN caching of cards does now work.Werner Koch1-0/+2
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-128/+0
2005-06-03* command.c (cmd_updatestartuptty): New.Werner Koch1-0/+6
* 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-31* agent.h (out_of_core): s/__inline__/inine. Noted by Ray Link.Werner Koch1-1/+1
* dynload.h: s/__inline__/inline/. * tlv.c [GNUPG_MAJOR_VERSION==1]: Define constants instead of including a gnupg 1.4 header. * watchgnupg.c: Make sure that PF_LCOAL and AF_LOCAL are defines. Noted by Ray Link.
2005-05-23* Makefile.am: Do not build sc-copykeys anymore.Werner Koch1-17/+0
* app-openpgp.c (app_openpgp_storekey, app_openpgp_readkey) (app_openpgp_cardinfo): Removed.
2005-05-20* protect-tool.c: New option --canonical.Werner Koch1-2/+26
(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-50/+51
gpg-agent accordingly. Code cleanups.
2005-04-27* configure.ac: Removed OpenSC detection and options.Werner Koch1-1/+1
* 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.
2005-02-22* app-openpgp.c (app_local_s): New field PK.Werner Koch1-1/+5
(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.
2004-10-22 * app-openpgp.c (do_sign): Replace asprintf by direct allocation.Werner Koch1-0/+7
This avoids problems with missing vasprintf implementations in gnupg 1.4. * app-common.h (app_openpgp_storekey: Add prototype.
2004-10-14Added ID keywords because these files are often used in other packages.Werner Koch1-0/+2
2004-09-09* app.c (select_application): Fixed serial number extraction andWerner Koch1-0/+4
added the BMI card workaround. (app_munge_serialno): New. * app-openpgp.c (app_select_openpgp): Try munging serialno.
2004-04-28* app-common.h: Do not include ksba.h for gnupg 1.Werner Koch1-0/+2
2004-04-26* app-common.h: New members FNC.DEINIT and APP_LOCAL.Werner Koch1-1/+4
* app.c (release_application): Call new deconstructor. * app-openpgp.c (do_deinit): New. (get_cached_data, flush_cache_item, flush_cache_after_error) (flush_cache): New. (get_one_do): Replaced arg SLOT by APP. Make used of cached data. (verify_chv2, verify_chv3): Flush some cache item after error. (do_change_pin): Ditto. (do_sign): Ditto. (do_setattr): Flush cache item. (do_genkey): Flush the entire cache. (compare_fingerprint): Use cached data.
2004-03-16* app-dinsig.c: Implemented. Based on app-nks.c and card-dinsig.cWerner Koch1-0/+7
* app-nks.c (get_length_of_cert): Removed. * app-help.c: New. (app_help_read_length_of_cert): New. Code taken from above. New optional arg R_CERTOFF. * card-dinsig.c: Removed. * card.c (card_get_serial_and_stamp): Do not bind to the old and never finsiged card-dinsig.c. * iso7816.c (iso7816_read_binary): Allow for an NMAX > 254.
2004-01-27Some minor bug fixes, new test utilities and started support for otherWerner Koch1-28/+42
smartcard applications.
2003-10-21* command.c (cmd_checkpin): New.Werner Koch1-0/+6
(register_commands): Add command CHECKPIN. * app.c (app_check_pin): New. * app-openpgp.c (check_against_given_fingerprint): New. Factored out that code elsewhere. (do_check_pin): New.
2003-10-02Fixes to make inclusion of card raleted source files into 1.3 easier.Werner Koch1-0/+6
2003-09-30* command.c (cmd_getattr): New command GETATTR.Werner Koch1-0/+3
* app.c (app_setattr): New. (do_getattr): New. (do_learn_status): Reimplemented in terms of do_getattr. * app-openpgp.c (do_change_pin): Make sure CVH1 and CHV2 are always synced. (verify_chv2, verify_chv3): New. Factored out common code. (do_setattr, do_sign, do_auth, do_decipher): Change the names of the prompts to match that we have only 2 different PINs. (app_select_openpgp): Check whether the card enforced CHV1. (convert_sig_counter_value): New. Factor out code from get_sig_counter.
2003-08-05Cleanups, fixes and PC/SC supportWerner Koch1-0/+1
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+128
'GNUPG-1-9-BRANCH'.
2003-07-24* app-openpgp.c (do_learn_status): Print more status information.Werner Koch1-0/+1
(app_select_openpgp): Store the card version. (store_fpr): Add argument card_version and fix DOs for old cards. (app_openpgp_storekey): Likewise.
2003-07-23* command.c (cmd_pkauth): New.Werner Koch1-0/+19
(cmd_setdata): Check whether data was given at all to avoid passing 0 to malloc. * app.c (app_auth): New. * app-openpgp.c (do_auth): New.
2003-07-16* Makefile.am: Add sc-copykeys program.Werner Koch1-0/+18
* sc-copykeys.c: New. * app-openpgp.c (app_openpgp_storekey): New. (app_openpgp_cardinfo): New. (count_bits): New. (store_fpr): And use it here to get the actual length in bit.
2003-07-03* app-openpgp.c (do_setattr): Add setting of the URL.Werner Koch1-4/+4
(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/+90