Lines Matching refs:sock
87 int sock; in ssh_get_authentication_socket() local
97 sock = socket(AF_UNIX, SOCK_STREAM, 0); in ssh_get_authentication_socket()
98 if (sock < 0) in ssh_get_authentication_socket()
102 if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1) { in ssh_get_authentication_socket()
103 close(sock); in ssh_get_authentication_socket()
106 if (connect(sock, (struct sockaddr *) &sunaddr, sizeof sunaddr) < 0) { in ssh_get_authentication_socket()
107 close(sock); in ssh_get_authentication_socket()
111 return sock; in ssh_get_authentication_socket()
178 ssh_close_authentication_socket(int sock) in ssh_close_authentication_socket() argument
181 close(sock); in ssh_close_authentication_socket()
196 int sock; in ssh_get_authentication_connection() local
198 sock = ssh_get_authentication_socket(); in ssh_get_authentication_connection()
204 if (sock < 0) in ssh_get_authentication_connection()
208 auth->fd = sock; in ssh_get_authentication_connection()