scd: Implement socket redirection.
authorWerner Koch <wk@gnupg.org>
Mon, 1 Dec 2014 09:45:06 +0000 (10:45 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 1 Dec 2014 09:45:06 +0000 (10:45 +0100)
commit2f90b7c21b2f84ca2bf5f4555da9233e84606b4e
tree13b6df2c24b8c46f1377e6cd65dcaad3c2478986
parenteede0e59bf6281777da7391752ae4191f3e51204
scd: Implement socket redirection.

* scd/scdaemon.c (ENAMETOOLONG): New.
(redir_socket_name): New.
(cleanup): Take care of a redirected socket.
(main): Pass redir_socket_name to create_server_socket.
(create_socket_name): Remove superfluous length check.
(create_server_socket): Add arg r_redir_name and implement
redirection.  Replace assert for older Assuan by an error message.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/gpg-agent.c
scd/scdaemon.c