From f6f5430e5014f90b685420447dffe89b220e2663 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 7 Jul 2009 10:02:41 +0000 Subject: Reworked passing of envars to Pinentry. --- common/asshelp.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'common/asshelp.h') diff --git a/common/asshelp.h b/common/asshelp.h index dfed3ac50..f7bc88bad 100644 --- a/common/asshelp.h +++ b/common/asshelp.h @@ -23,31 +23,25 @@ #include #include +#include "session-env.h" + gpg_error_t send_pinentry_environment (assuan_context_t ctx, gpg_err_source_t errsource, - const char *opt_display, - const char *opt_ttyname, - const char *opt_ttytype, const char *opt_lc_ctype, const char *opt_lc_messages, - const char *opt_xauthority, - const char *opt_pinentry_user_data); + session_env_t session_env); /* This fucntion is used by the call-agent.c modules to fire up a new - agent. What a parameter list ;-). */ + agent. */ gpg_error_t start_new_gpg_agent (assuan_context_t *r_ctx, gpg_err_source_t errsource, const char *homedir, const char *agent_program, - const char *opt_display, - const char *opt_ttyname, - const char *opt_ttytype, const char *opt_lc_ctype, const char *opt_lc_messages, - const char *opt_xauthority, - const char *opt_pinentry_user_data, + session_env_t session_env, int verbose, int debug, gpg_error_t (*status_cb)(ctrl_t, int, ...), ctrl_t status_cb_arg); -- cgit v1.2.3