version 1.401, 2014/02/26 20:18:37 |
version 1.402, 2014/04/29 18:01:49 |
|
|
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
|
#ifdef WITH_OPENSSL |
#include <openssl/evp.h> |
#include <openssl/evp.h> |
#include <openssl/err.h> |
#include <openssl/err.h> |
|
#endif |
|
|
#include "xmalloc.h" |
#include "xmalloc.h" |
#include "ssh.h" |
#include "ssh.h" |
|
|
break; |
break; |
case 'V': |
case 'V': |
fprintf(stderr, "%s, %s\n", |
fprintf(stderr, "%s, %s\n", |
SSH_VERSION, SSLeay_version(SSLEAY_VERSION)); |
SSH_VERSION, |
|
#ifdef WITH_OPENSSL |
|
SSLeay_version(SSLEAY_VERSION) |
|
#else |
|
"without OpenSSL" |
|
#endif |
|
); |
if (opt == 'V') |
if (opt == 'V') |
exit(0); |
exit(0); |
break; |
break; |
|
|
|
|
host_arg = xstrdup(host); |
host_arg = xstrdup(host); |
|
|
|
#ifdef WITH_OPENSSL |
OpenSSL_add_all_algorithms(); |
OpenSSL_add_all_algorithms(); |
ERR_load_crypto_strings(); |
ERR_load_crypto_strings(); |
|
#endif |
|
|
/* Initialize the command to execute on remote host. */ |
/* Initialize the command to execute on remote host. */ |
buffer_init(&command); |
buffer_init(&command); |
|
|
SYSLOG_FACILITY_USER, !use_syslog); |
SYSLOG_FACILITY_USER, !use_syslog); |
|
|
if (debug_flag) |
if (debug_flag) |
logit("%s, %s", SSH_VERSION, SSLeay_version(SSLEAY_VERSION)); |
logit("%s, %s", SSH_VERSION, |
|
#ifdef WITH_OPENSSL |
|
SSLeay_version(SSLEAY_VERSION) |
|
#else |
|
"without OpenSSL" |
|
#endif |
|
); |
|
|
/* Parse the configuration files */ |
/* Parse the configuration files */ |
process_config_files(pw); |
process_config_files(pw); |