diff options
author | Moritz Schulte <mo@g10code.com> | 2005-01-26 23:20:21 +0100 |
---|---|---|
committer | Moritz Schulte <mo@g10code.com> | 2005-01-26 23:20:21 +0100 |
commit | a5d3f8a6e78844505d9b59f5c41d71d266e4581b (patch) | |
tree | e4e1ac2ca36618af4486c6f4ba484f4a6af5cc35 /agent/agent.h | |
parent | post release updates (diff) | |
download | gnupg2-a5d3f8a6e78844505d9b59f5c41d71d266e4581b.tar.xz gnupg2-a5d3f8a6e78844505d9b59f5c41d71d266e4581b.zip |
2005-01-26 Moritz Schulte <moritz@g10code.com>
* command-ssh.c: New file.
* Makefile.am (gpg_agent_SOURCES): New source file: command-ssh.c.
* findkey.c (modify_description): New function.
(agent_key_from_file): Support comment field in key s-expressions.
* gpg-agent.c (enum cmd_and_opt_values): New item: oSSHSupport.
(opts) New entry for oSSHSupport.
New variable: socket_name_ssh.
(cleanup_do): New function based on cleanup().
(cleanup): Use cleanup_do() for socket_name and socket_name_ssh.
(main): New switch case for oSSHSupport.
(main): Move socket name creation code to ...
(create_socket_name): ... this new function.
(main): Use create_socket_name() for creating socket names for
socket_name and for socket_name_ssh in case ssh support is
enabled.
Move socket creation code to ...
(create_server_socket): ... this new function.
(main): Use create_server_socket() for creating sockets.
In case standard_socket is set, do not only store a socket name in
socket_name, but also in socket_name_ssh.
Generate additional environment info strings for ssh support.
Pass additional ssh socket argument to handle_connections.
(start_connection_thread_ssh): New function.
(handle_connections): Use select to multiplex between gpg-agent
and ssh-agent protocol.
* agent.h (struct opt): New member: ssh_support.
Declare function: start_command_handler_ssh.
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/agent/agent.h b/agent/agent.h index 7d6bf9f47..8afda6463 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -1,5 +1,5 @@ /* agent.h - Global definitions for the agent - * Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -66,6 +66,7 @@ struct { int allow_preset_passphrase; int keep_tty; /* don't switch the TTY (for pinentry) on request */ int keep_display; /* don't switch the DISPLAY (for pinentry) on request */ + int ssh_support; /* Enable ssh-agent emulation. */ } opt; @@ -136,6 +137,9 @@ void agent_init_default_ctrl (struct server_control_s *ctrl); /*-- command.c --*/ void start_command_handler (int, int); +/*-- command-ssh.c --*/ +void start_command_handler_ssh (int); + /*-- findkey.c --*/ int agent_write_private_key (const unsigned char *grip, const void *buffer, size_t length, int force); |