version 1.31, 1999/12/01 13:59:15 |
version 1.32, 1999/12/06 12:07:21 |
|
|
/* Allocate a channel number for the socket. */ |
/* Allocate a channel number for the socket. */ |
ch = channel_allocate(SSH_CHANNEL_PORT_LISTENER, sock, |
ch = channel_allocate(SSH_CHANNEL_PORT_LISTENER, sock, |
xstrdup("port listener")); |
xstrdup("port listener")); |
strcpy(channels[ch].path, host); |
strlcpy(channels[ch].path, host, sizeof(channels[ch].path)); |
channels[ch].host_port = host_port; |
channels[ch].host_port = host_port; |
channels[ch].listening_port = port; |
channels[ch].listening_port = port; |
} |
} |
|
|
/* Allocate a channel for the authentication agent socket. */ |
/* Allocate a channel for the authentication agent socket. */ |
newch = channel_allocate(SSH_CHANNEL_AUTH_SOCKET, sock, |
newch = channel_allocate(SSH_CHANNEL_AUTH_SOCKET, sock, |
xstrdup("auth socket")); |
xstrdup("auth socket")); |
strcpy(channels[newch].path, channel_forwarded_auth_socket_name); |
strlcpy(channels[newch].path, channel_forwarded_auth_socket_name, |
|
sizeof(channels[newch].path)); |
} |
} |
|
|
/* This is called to process an SSH_SMSG_AGENT_OPEN message. */ |
/* This is called to process an SSH_SMSG_AGENT_OPEN message. */ |