aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-02-24 17:36:11 +0000
committerWerner Koch <[email protected]>2005-02-24 17:36:11 +0000
commit3af261572bdf938f0a2fdde4d9aec82153a7e0e4 (patch)
tree97ea3ee2c40c6a3288182c6e95e92377e3e7a794 /scd/app-common.h
parent* command-ssh.c (get_passphrase): Removed. (diff)
downloadgnupg-3af261572bdf938f0a2fdde4d9aec82153a7e0e4.tar.gz
gnupg-3af261572bdf938f0a2fdde4d9aec82153a7e0e4.zip
* gpg-agent.c (handle_connections): Need to check for events if
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.
Diffstat (limited to 'scd/app-common.h')
-rw-r--r--scd/app-common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index ace57d98c..4a2adaa54 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -104,7 +104,8 @@ size_t app_help_read_length_of_cert (int slot, int fid, size_t *r_certoff);
/*-- app.c --*/
-app_t select_application (ctrl_t ctrl, int slot, const char *name);
+gpg_error_t select_application (ctrl_t ctrl, int slot, const char *name,
+ app_t *r_app);
void release_application (app_t app);
int app_munge_serialno (app_t app);
int app_get_serial_and_stamp (app_t app, char **serial, time_t *stamp);