Changeset View
Changeset View
Standalone View
Standalone View
ssh.c
Show First 20 Lines • Show All 882 Lines • ▼ Show 20 Lines | case 'v': | ||||||||
} else { | } else { | ||||||||
if (options.log_level < SYSLOG_LEVEL_DEBUG3) { | if (options.log_level < SYSLOG_LEVEL_DEBUG3) { | ||||||||
debug_flag++; | debug_flag++; | ||||||||
options.log_level++; | options.log_level++; | ||||||||
} | } | ||||||||
} | } | ||||||||
break; | break; | ||||||||
case 'V': | case 'V': | ||||||||
fprintf(stderr, "%s, %s\n", | if (options.version_addendum != NULL && | ||||||||
SSH_RELEASE, SSH_OPENSSL_VERSION); | *options.version_addendum != '\0') | ||||||||
fprintf(stderr, "%s %s, %s\n", SSH_RELEASE, | |||||||||
options.version_addendum, | |||||||||
OPENSSL_VERSION_STRING); | |||||||||
else | |||||||||
fprintf(stderr, "%s, %s\n", SSH_RELEASE, | |||||||||
OPENSSL_VERSION_STRING); | |||||||||
allanjudeUnsubmitted Not Done Inline Actions
allanjude: | |||||||||
if (opt == 'V') | if (opt == 'V') | ||||||||
exit(0); | exit(0); | ||||||||
break; | break; | ||||||||
case 'w': | case 'w': | ||||||||
if (options.tun_open == -1) | if (options.tun_open == -1) | ||||||||
options.tun_open = SSH_TUNMODE_DEFAULT; | options.tun_open = SSH_TUNMODE_DEFAULT; | ||||||||
options.tun_local = a2tun(optarg, &options.tun_remote); | options.tun_local = a2tun(optarg, &options.tun_remote); | ||||||||
if (options.tun_local == SSH_TUNID_ERR) { | if (options.tun_local == SSH_TUNID_ERR) { | ||||||||
▲ Show 20 Lines • Show All 244 Lines • ▼ Show 20 Lines | #endif | ||||||||
log_init(argv0, | log_init(argv0, | ||||||||
options.log_level == SYSLOG_LEVEL_NOT_SET ? | options.log_level == SYSLOG_LEVEL_NOT_SET ? | ||||||||
SYSLOG_LEVEL_INFO : options.log_level, | SYSLOG_LEVEL_INFO : options.log_level, | ||||||||
options.log_facility == SYSLOG_FACILITY_NOT_SET ? | options.log_facility == SYSLOG_FACILITY_NOT_SET ? | ||||||||
SYSLOG_FACILITY_USER : options.log_facility, | SYSLOG_FACILITY_USER : options.log_facility, | ||||||||
!use_syslog); | !use_syslog); | ||||||||
if (debug_flag) | if (debug_flag) | ||||||||
logit("%s, %s", SSH_RELEASE, SSH_OPENSSL_VERSION); | /* version_addendum is always NULL at this point */ | ||||||||
logit("%s, %s", SSH_RELEASE, OPENSSL_VERSION_STRING); | |||||||||
/* Parse the configuration files */ | /* Parse the configuration files */ | ||||||||
process_config_files(host_arg, pw, 0, &want_final_pass); | process_config_files(host_arg, pw, 0, &want_final_pass); | ||||||||
if (want_final_pass) | if (want_final_pass) | ||||||||
debug("configuration requests final Match pass"); | debug("configuration requests final Match pass"); | ||||||||
/* Hostname canonicalisation needs a few options filled. */ | /* Hostname canonicalisation needs a few options filled. */ | ||||||||
fill_default_options_for_canonicalization(&options); | fill_default_options_for_canonicalization(&options); | ||||||||
▲ Show 20 Lines • Show All 1,211 Lines • Show Last 20 Lines |