Return to authfd.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.5, 1999/10/03 19:22:38 | version 1.6, 1999/10/04 20:45:01 | ||
---|---|---|---|
|
|
||
int sock; | int sock; | ||
struct sockaddr_un sunaddr; | struct sockaddr_un sunaddr; | ||
/* Get the file descriptor number from environment. */ | |||
authfd = getenv(SSH_AUTHFD_ENV_NAME); | |||
/* Convert the value to an integer and return it if we got a value. */ | |||
if (authfd) | |||
return atoi(authfd); | |||
authsocket = getenv(SSH_AUTHSOCKET_ENV_NAME); | authsocket = getenv(SSH_AUTHSOCKET_ENV_NAME); | ||
if (!authsocket) | if (!authsocket) | ||
return -1; | return -1; |