| 314 |
return def; |
return def; |
| 315 |
} else { |
} else { |
| 316 |
return atoi(buf) != 0 || |
return atoi(buf) != 0 || |
| 317 |
stricmp(buf, "yes") == 0 || stricmp(buf, "y") == 0; |
_stricmp(buf, "yes") == 0 || _stricmp(buf, "y") == 0; |
| 318 |
} |
} |
| 319 |
} |
} |
| 320 |
|
|
| 1026 |
// check SSH protocol version |
// check SSH protocol version |
| 1027 |
memset(afstr, 0, sizeof(afstr)); |
memset(afstr, 0, sizeof(afstr)); |
| 1028 |
GetDlgItemText(dlg, IDC_SSH_VERSION, afstr, sizeof(afstr)); |
GetDlgItemText(dlg, IDC_SSH_VERSION, afstr, sizeof(afstr)); |
| 1029 |
if (stricmp(afstr, "SSH1") == 0) { |
if (_stricmp(afstr, "SSH1") == 0) { |
| 1030 |
pvar->settings.ssh_protocol_version = 1; |
pvar->settings.ssh_protocol_version = 1; |
| 1031 |
} else { |
} else { |
| 1032 |
pvar->settings.ssh_protocol_version = 2; |
pvar->settings.ssh_protocol_version = 2; |
| 1208 |
pvar->settings.Enabled = 1; |
pvar->settings.Enabled = 1; |
| 1209 |
} else if (MATCH_STR(option + 4, "-L") == 0 |
} else if (MATCH_STR(option + 4, "-L") == 0 |
| 1210 |
|| MATCH_STR(option + 4, "-R") == 0 |
|| MATCH_STR(option + 4, "-R") == 0 |
| 1211 |
|| stricmp(option + 4, "-X") == 0) { |
|| _stricmp(option + 4, "-X") == 0) { |
| 1212 |
if (pvar->settings.DefaultForwarding[0] == 0) { |
if (pvar->settings.DefaultForwarding[0] == 0) { |
| 1213 |
strcpy(pvar->settings.DefaultForwarding, option + 5); |
strcpy(pvar->settings.DefaultForwarding, option + 5); |
| 1214 |
} else { |
} else { |
| 1219 |
read_ssh_options_from_user_file(pvar, option + 7); |
read_ssh_options_from_user_file(pvar, option + 7); |
| 1220 |
} else if (MATCH_STR(option + 4, "-v") == 0) { |
} else if (MATCH_STR(option + 4, "-v") == 0) { |
| 1221 |
pvar->settings.LogLevel = LOG_LEVEL_VERBOSE; |
pvar->settings.LogLevel = LOG_LEVEL_VERBOSE; |
| 1222 |
} else if (stricmp(option + 4, "-autologin") == 0 |
} else if (_stricmp(option + 4, "-autologin") == 0 |
| 1223 |
|| stricmp(option + 4, "-autologon") == 0) { |
|| _stricmp(option + 4, "-autologon") == 0) { |
| 1224 |
pvar->settings.TryDefaultAuth = TRUE; |
pvar->settings.TryDefaultAuth = TRUE; |
| 1225 |
|
|
| 1226 |
} else if (MATCH_STR(option + 4, "-consume=") == 0) { |
} else if (MATCH_STR(option + 4, "-consume=") == 0) { |
| 3100 |
|
|
| 3101 |
/* |
/* |
| 3102 |
* $Log: not supported by cvs2svn $ |
* $Log: not supported by cvs2svn $ |
| 3103 |
|
* Revision 1.27 2005/10/21 13:43:08 yutakakn |
| 3104 |
|
* Historyチェックボックスのenable / disable追加。 |
| 3105 |
|
* |
| 3106 |
* Revision 1.26 2005/10/21 13:36:46 yutakakn |
* Revision 1.26 2005/10/21 13:36:46 yutakakn |
| 3107 |
* 接続ダイアログに History チェックボックスを追加した。 |
* 接続ダイアログに History チェックボックスを追加した。 |
| 3108 |
* 2.18へアップデート。 |
* 2.18へアップデート。 |