agent: Implement socket redirection.
authorWerner Koch <wk@gnupg.org>
Fri, 28 Nov 2014 20:34:35 +0000 (21:34 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 28 Nov 2014 20:34:35 +0000 (21:34 +0100)
commite1f515b19c7f63b6d0b0253319b9fc41dabed657
tree36bc2700a18f05549b6971c8120887594ca8679c
parente59b1cc7471dd161a627b290c645ef7bd0d9d42c
agent: Implement socket redirection.

* agent/gpg-agent.c (ENAMETOOLONG): New.
(redir_socket_name, redir_socket_name_extra)
(redir_socket_name_ssh): New.
(remove_socket): Take care of the redir names.
(main): Pass the redir names to create_server_socket.
(create_socket_name): Remove length check - that is anyway done later.
(create_server_socket): Add arg r_redir_name and implement redirection
if Libassuan is at least 2.14.
agent/gpg-agent.c