GNUPG-1-9-BRANCH-MO gnupg/agent (11 files)

cvs user mo cvs at cvs.gnupg.org
Mon Jul 19 17:54:11 CEST 2004


    Date: Monday, July 19, 2004 @ 17:54:11
  Author: mo
    Path: /cvs/gnupg/gnupg/agent
     Tag: GNUPG-1-9-BRANCH-MO

   Added: buffer.c buffer.h command-ssh.c gpg-stream.c gpg-stream.h
Modified: ChangeLog Makefile.am agent.h gpg-agent.c pksign.c query.c

2004-07-19  Moritz Schulte  <moritz at g10code.com>

	* Makefile.am (gpg_agent_SOURCES): Adding: gpg-stream.c,
	gpg-stream.h, buffer.c, buffer.h, command-ssh.c.

	* pksign.c (agent_pksign_do): New function, based on code ripped
	out from agent_pksign.
	(agent_pksign): Use agent_pksign_do.

	* query.c (start_pinentry): Accept CTRL being NULL.

	* agent.h (start_command_handler_ssh): Declare function.
	(agent_pksign_do): Declare function.
	(opt): New member: ssh_support.

	* gpg-agent.c: Include <sys/select.h>.
	New configuration option: ssh-support.
	(socket_name_ssh): New variabel.
	(handle_connections): Additional argument: listen_fd_ssh.  Accept
	connections on both sockets, call start_connection_thread_ssh for
	connections on listen_fd_ssh.
	(start_connection_thread_ssh): New function.
	(cleanup_do): New functions, basically old cleanup function.
	(cleanup): Call cleanup_do for socket_name and socket_name_ssh.
	(server_socket_create): New function ...
	(main): ... use it.
	(main): Generate environment entries for ssh.

	* command-ssh.c: New file, implementing the ssh-agent protocol.
	* gpg-stream.c, gpg-stream.h, buffer.c, buffer.h: Merged
	Libgpg-stream.


---------------+
 ChangeLog     |   32 +
 Makefile.am   |    4 
 agent.h       |    6 
 buffer.c      |  413 +++++++++++++
 buffer.h      |  102 +++
 command-ssh.c | 1694 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 gpg-agent.c   |  366 ++++++++----
 gpg-stream.c  |  914 ++++++++++++++++++++++++++++++
 gpg-stream.h  |  148 ++++
 pksign.c      |   87 ++
 query.c       |   10 
 11 files changed, 3639 insertions(+), 137 deletions(-)



More information about the Gnupg-commits mailing list