Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c
Parent Directory
| Revision Log
| Patch
| 3447 |
char tmpFile[MAX_PATH]; |
char tmpFile[MAX_PATH]; |
| 3448 |
char tmpPath[1024]; |
char tmpPath[1024]; |
| 3449 |
char *buf; |
char *buf; |
| 3450 |
|
char *p; |
| 3451 |
int i; |
int i; |
| 3452 |
GET_VAR(); |
GET_VAR(); |
| 3453 |
|
|
| 3473 |
strncat_s(cmd, cmdlen, buf, _TRUNCATE); |
strncat_s(cmd, cmdlen, buf, _TRUNCATE); |
| 3474 |
|
|
| 3475 |
// コマンドラインでの指定をチェック |
// コマンドラインでの指定をチェック |
| 3476 |
if (strstr(buf, " /ssh")) { |
if (p = strstr(buf, " /ssh")) { |
| 3477 |
ssh_enable = 1; |
switch (*(p + 5)) { |
| 3478 |
|
case '\0': |
| 3479 |
|
case ' ': |
| 3480 |
|
case '1': |
| 3481 |
|
case '2': |
| 3482 |
|
ssh_enable = 1; |
| 3483 |
|
} |
| 3484 |
} |
} |
| 3485 |
else if (strstr(buf, " /nossh") || |
else if (strstr(buf, " /nossh") || |
| 3486 |
strstr(buf, " /telnet")) { |
strstr(buf, " /telnet")) { |
|
|
Legend:
| Removed from v.3061 |
|
| changed lines |
| |
Added in v.3065 |
|
|
| |