aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h (unfollow)
Commit message (Collapse)AuthorFilesLines
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'.