aboutsummaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-02-23 21:06:32 +0000
committerWerner Koch <[email protected]>2005-02-23 21:06:32 +0000
commit4e5bf2fd93a175f64aa1ca2e4b35dcf853f7f828 (patch)
treed00f3064beafb27e942d990ebd4fb2a16a0e1ccd /agent/agent.h
parent(stream_read_string): Removed call to abort on (diff)
downloadgnupg-4e5bf2fd93a175f64aa1ca2e4b35dcf853f7f828.tar.gz
gnupg-4e5bf2fd93a175f64aa1ca2e4b35dcf853f7f828.zip
* command-ssh.c (get_passphrase): Removed.
(ssh_identity_register): Partly rewritten. (open_control_file, search_control_file, add_control_entry): New. (ssh_handler_request_identities): Return only files listed in our control file. * findkey.c (unprotect): Check for allocation error. * agent.h (opt): Add fields to record the startup terminal settings. * gpg-agent.c (main): Record them and do not force keep display with --enable-ssh-support. * command-ssh.c (start_command_handler_ssh): Use them here. * gpg-agent.c: Renamed option --ssh-support to --enable-ssh-support. * command.c (cmd_readkey): New. (register_commands): Register new command "READKEY". * command-ssh.c (ssh_request_process): Improved logging. * findkey.c (agent_write_private_key): Always use plain open. Don't depend on an umask for permissions. (agent_key_from_file): Factored file reading code out to .. (read_key_file): .. new function. (agent_public_key_from_file): New.
Diffstat (limited to '')
-rw-r--r--agent/agent.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h
index a1196bc0b..0661cc4ad 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -53,6 +53,15 @@ struct {
int dry_run; /* Don't change any persistent data */
int batch; /* Batch mode */
const char *homedir; /* Configuration directory name */
+
+ /* Environment setting gathred at program start. */
+ const char *startup_display;
+ const char *startup_ttyname;
+ const char *startup_ttytype;
+ const char *startup_lc_ctype;
+ const char *startup_lc_messages;
+
+
const char *pinentry_program; /* Filename of the program to start as
pinentry. */
const char *scdaemon_program; /* Filename of the program to handle
@@ -150,6 +159,9 @@ gpg_error_t agent_key_from_file (ctrl_t ctrl,
const unsigned char *grip,
unsigned char **shadow_info,
int ignore_cache, gcry_sexp_t *result);
+gpg_error_t agent_public_key_from_file (ctrl_t ctrl,
+ const unsigned char *grip,
+ gcry_sexp_t *result);
int agent_key_available (const unsigned char *grip);
/*-- query.c --*/