mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
eede0e59bf
commit
2f90b7c21b
2 changed files with 69 additions and 27 deletions
|
@ -1525,8 +1525,8 @@ create_socket_name (char *standard_name, int with_homedir)
|
|||
/* Create a Unix domain socket with NAME. Returns the file descriptor
|
||||
or terminates the process in case of an error. Note that this
|
||||
function needs to be used for the regular socket first (indicated
|
||||
by PRIMARY) and only then for the extra and the ssh sockets. if
|
||||
the soecket has been redirected the name of the real socket is
|
||||
by PRIMARY) and only then for the extra and the ssh sockets. If
|
||||
the socket has been redirected the name of the real socket is
|
||||
stored as a malloced string at R_REDIR_NAME. */
|
||||
static gnupg_fd_t
|
||||
create_server_socket (char *name, int primary,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue