Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c
Parent Directory
| Revision Log
| Patch
| 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; |
| 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 |
|
|
| |