search for: authsocket

Displaying 4 results from an estimated 4 matches for "authsocket".

Did you mean: auth_socket
2015 Sep 26
5
[RFC][PATCH v2] Support a list of sockets on SSH_AUTH_SOCK
...cba2 100644 --- a/authfd.c +++ b/authfd.c @@ -83,21 +83,12 @@ decode_reply(u_char type) return SSH_ERR_INVALID_FORMAT; } -/* Returns the number of the authentication fd, or -1 if there is none. */ -int -ssh_get_authentication_socket(int *fdp) +static int +get_authentication_socket(const char *authsocket, int *fdp) { - const char *authsocket; int sock, oerrno; struct sockaddr_un sunaddr; - if (fdp != NULL) - *fdp = -1; - - authsocket = getenv(SSH_AUTHSOCKET_ENV_NAME); - if (!authsocket) - return SSH_ERR_AGENT_NOT_PRESENT; - memset(&sunaddr, 0, sizeof(sunaddr)); sunaddr.sun_family =...
2001 Feb 10
1
Handling of failed connect()s when ssh-agent is busy
...appens in authfd.c, line 372; if the connect() fails (because of ECONNREFUSED), ssh silently gives up trying to talk to the agent: sock = socket(AF_UNIX, SOCK_STREAM, 0); if (sock < 0) { error("Socket failed"); if (newauthsockdir != NULL) { unlink(authsocket); chdir("/"); rmdir(newauthsockdir); xfree(newauthsockdir); } xfree(authsocketdir); return -1; } if (connect(sock, (struct sockaddr *)&sunaddr, AF_UNIX_SIZE(sunaddr)) < 0) { close(sock); if (newa...
2012 Dec 21
0
File Attachments for previous bug report
...- bzero(x2_s_proof, x2_s_proof_len); + memset(x2_s_proof, 0, x2_s_proof_len); xfree(x2_s_proof); if (!use_privsep) -------------- next part -------------- --- authfd.c.orig 2012-12-19 17:07:08.292534290 -0800 +++ authfd.c 2012-12-19 17:10:48.240556291 -0800 @@ -102,7 +102,7 @@ if (!authsocket) return -1; - bzero(&sunaddr, sizeof(sunaddr)); + memset(&sunaddr, 0, sizeof(sunaddr)); sunaddr.sun_family = AF_UNIX; strlcpy(sunaddr.sun_path, authsocket, sizeof(sunaddr.sun_path)); -------------- next part -------------- --- authfile.c.orig 2012-12-19 17:11:06.537523347 -...
2012 Dec 20
4
Deprecated calls to bzero() and index() found in OpenSSH 6.1p1
..._privsep) In file 'authfd.c', I've replaced the bzero() call with the equivalent memset() call. The patch file is below in (diff -u) format: --- authfd.c.orig 2012-12-19 17:07:08.292534290 -0800 +++ authfd.c 2012-12-19 17:10:48.240556291 -0800 @@ -102,7 +102,7 @@ if (!authsocket) return -1; - bzero(&sunaddr, sizeof(sunaddr)); + memset(&sunaddr, 0, sizeof(sunaddr)); sunaddr.sun_family = AF_UNIX; strlcpy(sunaddr.sun_path, authsocket, sizeof(sunaddr.sun_path)); In file 'authfile.c', I've replaced the bzero() ca...