version 1.4, 1999/09/30 08:34:24 |
version 1.5, 1999/10/03 19:22:38 |
|
|
PUT_16BIT(msg + 1, port); |
PUT_16BIT(msg + 1, port); |
if (send(authfd, msg, 3, 0) < 0) |
if (send(authfd, msg, 3, 0) < 0) |
{ |
{ |
shutdown(listen_sock, 2); |
shutdown(listen_sock, SHUT_RDWR); |
close(listen_sock); |
close(listen_sock); |
ssh_close_authentication_socket(authfd); |
ssh_close_authentication_socket(authfd); |
return -1; |
return -1; |
|
|
|
|
/* Close the socket we used for listening. It is no longer needed. |
/* Close the socket we used for listening. It is no longer needed. |
(The authentication fd and the new connection still remain open.) */ |
(The authentication fd and the new connection still remain open.) */ |
shutdown(listen_sock, 2); |
shutdown(listen_sock, SHUT_RDWR); |
close(listen_sock); |
close(listen_sock); |
ssh_close_authentication_socket(authfd); |
ssh_close_authentication_socket(authfd); |
|
|
|
|
void ssh_close_authentication(AuthenticationConnection *auth) |
void ssh_close_authentication(AuthenticationConnection *auth) |
{ |
{ |
/* Close the connection. */ |
/* Close the connection. */ |
shutdown(auth->fd, 2); |
shutdown(auth->fd, SHUT_RDWR); |
close(auth->fd); |
close(auth->fd); |
|
|
/* Free the buffers. */ |
/* Free the buffers. */ |