Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2847 by yutakakn, Fri Oct 21 13:43:08 2005 UTC revision 2850 by yutakakn, Sat Feb 18 07:37:02 2006 UTC
# Line 314  static BOOL read_BOOL_option(PCHAR fileN Line 314  static BOOL read_BOOL_option(PCHAR fileN
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    
# Line 1026  static BOOL CALLBACK TTXHostDlg(HWND dlg Line 1026  static BOOL CALLBACK TTXHostDlg(HWND dlg
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;
# Line 1208  static int parse_option(PTInstVar pvar, Line 1208  static int parse_option(PTInstVar pvar,
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 {
# Line 1219  static int parse_option(PTInstVar pvar, Line 1219  static int parse_option(PTInstVar pvar,
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) {
# Line 3100  int CALLBACK LibMain(HANDLE hInstance, W Line 3100  int CALLBACK LibMain(HANDLE hInstance, W
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へアップデート。

Legend:
Removed from v.2847  
changed lines
  Added in v.2850

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26