version 1.33, 2001/12/10 20:34:31 |
version 1.34, 2002/02/22 12:20:34 |
|
|
} |
} |
} |
} |
|
|
static void |
void |
fatal_callback(void *arg) |
fatal(const char *fmt,...) |
{ |
{ |
|
va_list args; |
|
va_start(args, fmt); |
|
do_log(SYSLOG_LEVEL_FATAL, fmt, args); |
|
va_end(args); |
if (nonfatal_fatal) |
if (nonfatal_fatal) |
longjmp(kexjmp, -1); |
longjmp(kexjmp, -1); |
|
else |
|
fatal_cleanup(); |
} |
} |
|
|
static void |
static void |
|
|
fprintf(stderr, " -p port Connect to the specified port.\n"); |
fprintf(stderr, " -p port Connect to the specified port.\n"); |
fprintf(stderr, " -t keytype Specify the host key type.\n"); |
fprintf(stderr, " -t keytype Specify the host key type.\n"); |
fprintf(stderr, " -T timeout Set connection timeout.\n"); |
fprintf(stderr, " -T timeout Set connection timeout.\n"); |
fprintf(stderr, " -v Verbose; display verbose debugging messages.\n"); |
fprintf(stderr, " -v Verbose; display verbose debugging messages.\n"); |
fprintf(stderr, " -4 Use IPv4 only.\n"); |
fprintf(stderr, " -4 Use IPv4 only.\n"); |
fprintf(stderr, " -6 Use IPv6 only.\n"); |
fprintf(stderr, " -6 Use IPv6 only.\n"); |
exit(1); |
exit(1); |
} |
} |
|
|
|
|
usage(); |
usage(); |
|
|
log_init("ssh-keyscan", log_level, SYSLOG_FACILITY_USER, 1); |
log_init("ssh-keyscan", log_level, SYSLOG_FACILITY_USER, 1); |
fatal_add_cleanup(fatal_callback, NULL); |
|
|
|
maxfd = fdlim_get(1); |
maxfd = fdlim_get(1); |
if (maxfd < 0) |
if (maxfd < 0) |