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 3048 by yutakapon, Fri Oct 19 11:33:12 2007 UTC revision 3061 by maya, Thu Nov 1 12:28:30 2007 UTC
# Line 3457  static void PASCAL FAR TTXSetCommandLine Line 3457  static void PASCAL FAR TTXSetCommandLine
3457          }          }
3458    
3459          if (i < cmdlen) {          if (i < cmdlen) {
3460                    int ssh_enable = -1;
3461    
3462                  buf = malloc(cmdlen+1);                  buf = malloc(cmdlen+1);
3463                  strncpy_s(buf, cmdlen, cmd + i, _TRUNCATE);                  strncpy_s(buf, cmdlen, cmd + i, _TRUNCATE);
3464                  buf[cmdlen] = 0;                  buf[cmdlen] = 0;
# Line 3469  static void PASCAL FAR TTXSetCommandLine Line 3471  static void PASCAL FAR TTXSetCommandLine
3471    
3472                  strncat_s(cmd, cmdlen, buf, _TRUNCATE);                  strncat_s(cmd, cmdlen, buf, _TRUNCATE);
3473    
3474                  if (pvar->hostdlg_Enabled) {                  // コマンドラインでの指定をチェック
3475                    if (strstr(buf, " /ssh")) {
3476                            ssh_enable = 1;
3477                    }
3478                    else if (strstr(buf, " /nossh") ||
3479                             strstr(buf, " /telnet")) {
3480                            ssh_enable = 0;
3481                    }
3482    
3483                    // ホスト名で /ssh /1, /ssh  /2, /ssh1, /ssh2, /nossh, /telnet が
3484                    // 指定されたときは、ラジオボタンの SSH および SSH プロトコルバージョンを
3485                    // 適用するのをやめる (2007.11.1 maya)
3486                    if (pvar->hostdlg_Enabled && ssh_enable == -1) {
3487                          strncat_s(cmd, cmdlen, " /ssh", _TRUNCATE);                          strncat_s(cmd, cmdlen, " /ssh", _TRUNCATE);
3488    
3489                          // add option of SSH protcol version (2004.10.11 yutaka)                          // add option of SSH protcol version (2004.10.11 yutaka)

Legend:
Removed from v.3048  
changed lines
  Added in v.3061

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