version 1.5, 2020/01/10 23:43:26 |
version 1.6, 2020/01/21 07:07:31 |
|
|
#include <sys/socket.h> |
#include <sys/socket.h> |
#include <sys/wait.h> |
#include <sys/wait.h> |
|
|
|
#include <fcntl.h> |
#include <limits.h> |
#include <limits.h> |
#include <errno.h> |
#include <errno.h> |
#include <signal.h> |
#include <signal.h> |
|
|
helper = getenv("SSH_SK_HELPER"); |
helper = getenv("SSH_SK_HELPER"); |
if (helper == NULL || strlen(helper) == 0) |
if (helper == NULL || strlen(helper) == 0) |
helper = _PATH_SSH_SK_HELPER; |
helper = _PATH_SSH_SK_HELPER; |
|
if (access(helper, X_OK) != 0) { |
|
oerrno = errno; |
|
error("%s: helper \"%s\" unusable: %s", __func__, helper, |
|
strerror(errno)); |
|
errno = oerrno; |
|
return SSH_ERR_SYSTEM_ERROR; |
|
} |
#ifdef DEBUG_SK |
#ifdef DEBUG_SK |
verbosity = "-vvv"; |
verbosity = "-vvv"; |
#endif |
#endif |