From svnnotify @ sourceforge.jp Wed Oct 1 14:09:59 2014 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 01 Oct 2014 14:09:59 +0900 Subject: [Ttssh2-commit] =?utf-8?b?WzU2NjldIFJGQzQyNTAsIDQyNTMg44Gr5a6a?= =?utf-8?b?576p44GV44KM44Gm44GE44KL44Oh44OD44K744O844K444GM5a6a576p44GV?= =?utf-8?b?44KM44Gm44GE44Gq44GE44Gu44Gn6L+95Yqg?= Message-ID: <1412140199.869005.28859.nullmailer@users.sourceforge.jp> Revision: 5669 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5669 Author: maya Date: 2014-10-01 14:09:56 +0900 (Wed, 01 Oct 2014) Log Message: ----------- RFC4250,4253 に定義されているメッセージが定義されていないので追加 Modified Paths: -------------- trunk/ttssh2/ttxssh/ssh.h -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/ssh.h =================================================================== --- trunk/ttssh2/ttxssh/ssh.h 2014-09-27 13:41:03 UTC (rev 5668) +++ trunk/ttssh2/ttxssh/ssh.h 2014-10-01 05:09:56 UTC (rev 5669) @@ -191,6 +191,10 @@ #define SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE 9 #define SSH2_DISCONNECT_CONNECTION_LOST 10 #define SSH2_DISCONNECT_BY_APPLICATION 11 +#define SSH2_DISCONNECT_TOO_MANY_CONNECTIONS 12 +#define SSH2_DISCONNECT_AUTH_CANCELLED_BY_USER 13 +#define SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE 14 +#define SSH2_DISCONNECT_ILLEGAL_USER_NAME 15 #define SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED 1 #define SSH2_OPEN_CONNECT_FAILED 2 From svnnotify @ sourceforge.jp Wed Oct 1 14:12:17 2014 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 01 Oct 2014 14:12:17 +0900 Subject: [Ttssh2-commit] =?utf-8?b?WzU2NzBdICDmlLnniYjlsaXmrbTjgpLmm7Q=?= =?utf-8?b?5paw?= Message-ID: <1412140337.187203.4851.nullmailer@users.sourceforge.jp> Revision: 5670 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5670 Author: maya Date: 2014-10-01 14:12:16 +0900 (Wed, 01 Oct 2014) Log Message: ----------- 改版履歴を更新 Modified Paths: -------------- trunk/doc/en/html/about/history.html trunk/doc/ja/html/about/history.html -------------- next part -------------- Modified: trunk/doc/en/html/about/history.html =================================================================== --- trunk/doc/en/html/about/history.html 2014-10-01 05:09:56 UTC (rev 5669) +++ trunk/doc/en/html/about/history.html 2014-10-01 05:12:16 UTC (rev 5670) @@ -43,6 +43,7 @@
  • upgraded TTSSH to 2.71
  • added the Traditional Chinese.lng language file. Special thanks to Wei Yan.
  • added support for 64bit Cygwin connection automatically.
  • + Modified: trunk/doc/ja/html/about/history.html =================================================================== --- trunk/doc/ja/html/about/history.html 2014-10-01 05:09:56 UTC (rev 5669) +++ trunk/doc/ja/html/about/history.html 2014-10-01 05:12:16 UTC (rev 5670) @@ -43,6 +43,7 @@
  • TTSSH(2.71)\x82?\xB7\x82\xB5\x91?\xA6\x82\xBD\x81B
  • \x8C\xBE\x8C\xEA\x83t\x83@\x83C\x83\x8B\x82?\x86\x8D\x91\x8C\xEA(\x94??\x9A)(Traditional Chinese.lng)\x82\xF0\x92?\xC1\x82\xB5\x82\xBD\x81BWei Yan\x8E\x81\x82?\xB4\x8E?\xB5\x82?\xB7\x81B
  • 64bit Cygwin\x82??\xA9\x93\xAE\x90?\xB1\x82?Ή\x9E\x82\xB5\x82\xBD\x81B
  • +
  • 64bit\x94\xC5cyglaunch.exe\x82?\xAF\x8D\xAB\x82\xF0\x82\xE2\x82?\xBD\x81B
  • From svnnotify @ sourceforge.jp Wed Oct 1 14:47:10 2014 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 01 Oct 2014 14:47:10 +0900 Subject: [Ttssh2-commit] =?utf-8?b?WzU2NzFdICBDeWd3aW4g44Gu44Kk44Oz44K5?= =?utf-8?b?44OI44O844Or5YWI44KS5o6i44GZ5pa55rOV44KS5aSJ5pu044GX44Gf?= Message-ID: <1412142430.780277.6027.nullmailer@users.sourceforge.jp> Revision: 5671 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5671 Author: maya Date: 2014-10-01 14:46:33 +0900 (Wed, 01 Oct 2014) Log Message: ----------- Cygwin のインストール先を探す方法を変更した Modified Paths: -------------- trunk/cygterm/cyglaunch.c trunk/installer/cygtool/cygtool.c trunk/installer/release/TERATERM.INI trunk/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: trunk/cygterm/cyglaunch.c =================================================================== --- trunk/cygterm/cyglaunch.c 2014-10-01 05:12:16 UTC (rev 5670) +++ trunk/cygterm/cyglaunch.c 2014-10-01 05:46:33 UTC (rev 5671) @@ -23,7 +23,7 @@ // void OnCygwinConnection(char *CygwinDirectory, char *cmdline) { - char file[MAX_PATH]; + char file[MAX_PATH], *filename; char c, *envptr, *envbuff; int envbufflen; char *exename = "cygterm.exe"; @@ -31,38 +31,31 @@ STARTUPINFO si; PROCESS_INFORMATION pi; - envptr = getenv("PATH"); - if (strstr(envptr, "cygwin\\bin") != NULL) { - goto found_path; + if (strlen(CygwinDirectory) > 0) { + if (SearchPath(CygwinDirectory, "bin\\cygwin1", ".dll", sizeof(file), file, &filename) > 0) { + goto found_dll; + } } - if (strstr(envptr, "cygwin64\\bin") != NULL) { + + if (SearchPath(NULL, "cygwin1", ".dll", sizeof(file), file, &filename) > 0) { goto found_path; } - _snprintf(file, MAX_PATH, "%s\\bin", CygwinDirectory); - if (GetFileAttributes(file) != -1) { // open success - goto found_dll; - } - - strcpy(file, "C:\\cygwin\\bin"); for (c = 'C' ; c <= 'Z' ; c++) { - file[0] = c; - if (GetFileAttributes(file) != -1) { // open success + char tmp[MAX_PATH]; + sprintf(tmp, "%c:\\cygwin\\bin;%c:\\cygwin64\\bin", c, c); + if (SearchPath(tmp, "cygwin1", ".dll", sizeof(file), file, &filename) > 0) { goto found_dll; } } - strcpy(file, "C:\\cygwin64\\bin"); - for (c = 'C' ; c <= 'Z' ; c++) { - file[0] = c; - if (GetFileAttributes(file) != -1) { // open success - goto found_dll; - } - } MessageBox(NULL, "Can't find Cygwin directory.", "ERROR", MB_OK | MB_ICONWARNING); return; found_dll:; + envptr = getenv("PATH"); + file[strlen(file)-12] = '\0'; // delete "\\cygwin1.dll" + MessageBox(NULL, file, "a", MB_OK); if (envptr != NULL) { envbufflen = strlen(file) + strlen(envptr) + 7; // "PATH="(5) + ";"(1) + NUL(1) if ((envbuff=malloc(envbufflen)) == NULL) { Modified: trunk/installer/cygtool/cygtool.c =================================================================== --- trunk/installer/cygtool/cygtool.c 2014-10-01 05:12:16 UTC (rev 5670) +++ trunk/installer/cygtool/cygtool.c 2014-10-01 05:46:33 UTC (rev 5671) @@ -7,67 +7,44 @@ int __stdcall FindCygwinPath(char *CygwinDirectory, char *Dir, int Dirlen) { - char c, *envptr, *p, *p2; + char file[MAX_PATH], *filename; + char c; - envptr = getenv("PATH"); - if (envptr == NULL) { - return 0; - } + if (strlen(CygwinDirectory) > 0) { + if (SearchPath(CygwinDirectory, "bin\\cygwin1", ".dll", sizeof(file), file, &filename) > 0) { #ifdef EXE - printf(" PATH => %s\n", envptr); + printf(" %s from CygwinDirectory\n", file); #endif - if ((p = strstr(envptr, "cygwin\\bin")) != NULL) { - goto found_path; + goto found_dll; + } } - if ((p = strstr(envptr, "cygwin64\\bin")) != NULL) { - goto found_path; - } - _snprintf_s(Dir, Dirlen, _TRUNCATE, "%s\\bin", CygwinDirectory); - if (GetFileAttributes(Dir) != -1) { // open success + if (SearchPath(NULL, "cygwin1", ".dll", sizeof(file), file, &filename) > 0) { +#ifdef EXE + printf(" %s from PATH\n", file); goto found_dll; +#endif } - _snprintf_s(Dir, Dirlen, _TRUNCATE, "C:\\cygwin\\bin"); for (c = 'C' ; c <= 'Z' ; c++) { - Dir[0] = c; - if (GetFileAttributes(Dir) != -1) { // open success + char tmp[MAX_PATH]; + sprintf(tmp, "%c:\\cygwin\\bin;%c:\\cygwin64\\bin", c, c); + if (SearchPath(tmp, "cygwin1", ".dll", sizeof(file), file, &filename) > 0) { +#ifdef EXE + printf(" %s from %c:\\\n", file, c); +#endif goto found_dll; } } - _snprintf_s(Dir, Dirlen, _TRUNCATE, "C:\\cygwin64\\bin"); - for (c = 'C' ; c <= 'Z' ; c++) { - Dir[0] = c; - if (GetFileAttributes(Dir) != -1) { // open success - goto found_dll; - } - } return 0; found_dll:; - Dir[strlen(Dir)-4] = '\0'; // delete "\\bin" - return 1; - -found_path:; - if ((p2 = strchr(p, ';')) == NULL) { - p2 += strlen(p); + memset(Dir, '\0', Dirlen); + if (Dirlen <= strlen(file) - 16) { + return 0; } - else { - p2--; - } - while (envptr < p) { - p--; - if (*p == ';') { - p++; - break; - } - } - strncpy_s(Dir, Dirlen, p, _TRUNCATE); - if (p2 - p < Dirlen-1) { - Dir[p2 - p + 1] = '\0'; - } - Dir[strlen(Dir)-4] = '\0'; // delete "\\bin" + memcpy(Dir, file, strlen(file) - 16); // delete "\\bin\\cygwin1.dll" return 1; } @@ -157,7 +134,7 @@ int res; printf("FindCygwinPath()\n"); - res = FindCygwinPath("C:\\cygwin", file, file_len); + res = FindCygwinPath("", file, file_len); printf(" result => %d\n", res); if (!res) { printf("\n"); Modified: trunk/installer/release/TERATERM.INI =================================================================== --- trunk/installer/release/TERATERM.INI 2014-10-01 05:12:16 UTC (rev 5670) +++ trunk/installer/release/TERATERM.INI 2014-10-01 05:46:33 UTC (rev 5671) @@ -103,7 +103,7 @@ AlphaBlend=255 ; Cygwin install path -CygwinDirectory=c:\cygwin +CygwinDirectory= ; Viewlog Editor path ViewlogEditor=notepad.exe Modified: trunk/teraterm/teraterm/vtwin.cpp =================================================================== --- trunk/teraterm/teraterm/vtwin.cpp 2014-10-01 05:12:16 UTC (rev 5670) +++ trunk/teraterm/teraterm/vtwin.cpp 2014-10-01 05:46:33 UTC (rev 5671) @@ -3727,7 +3727,7 @@ // void CVTWindow::OnCygwinConnection() { - char file[MAX_PATH]; + char file[MAX_PATH], *filename; char c, *envptr, *envbuff=NULL; int envbufflen; char *exename = "cygterm.exe"; @@ -3736,33 +3736,23 @@ PROCESS_INFORMATION pi; char uimsg[MAX_UIMSG]; - envptr = getenv("PATH"); - if (strstr(envptr, "cygwin\\bin") != NULL) { - goto found_path; + if (strlen(ts.CygwinDirectory) > 0) { + if (SearchPath(ts.CygwinDirectory, "bin\\cygwin1", ".dll", sizeof(file), file, &filename) > 0) { + goto found_dll; + } } - if (strstr(envptr, "cygwin64\\bin") != NULL) { + + if (SearchPath(NULL, "cygwin1", ".dll", sizeof(file), file, &filename) > 0) { goto found_path; } - _snprintf_s(file, sizeof(file), _TRUNCATE, "%s\\bin", ts.CygwinDirectory); - if (GetFileAttributes(file) != -1) { // open success - goto found_dll; - } - - _snprintf_s(file, sizeof(file), _TRUNCATE, "C:\\cygwin\\bin"); for (c = 'C' ; c <= 'Z' ; c++) { - file[0] = c; - if (GetFileAttributes(file) != -1) { // open success + char tmp[MAX_PATH]; + sprintf(tmp, "%c:\\cygwin\\bin;%c:\\cygwin64\\bin", c, c); + if (SearchPath(tmp, "cygwin1", ".dll", sizeof(file), file, &filename) > 0) { goto found_dll; } } - _snprintf_s(file, sizeof(file), _TRUNCATE, "C:\\cygwin64\\bin"); - for (c = 'C' ; c <= 'Z' ; c++) { - file[0] = c; - if (GetFileAttributes(file) != -1) { // open success - goto found_dll; - } - } get_lang_msg("MSG_ERROR", uimsg, sizeof(uimsg), "ERROR", ts.UILanguageFile); get_lang_msg("MSG_FIND_CYGTERM_DIR_ERROR", ts.UIMsg, sizeof(ts.UIMsg), @@ -3771,6 +3761,8 @@ return; found_dll:; + envptr = getenv("PATH"); + file[strlen(file)-12] = '\0'; // delete "\\cygwin1.dll" if (envptr != NULL) { envbufflen = strlen(file) + strlen(envptr) + 7; // "PATH="(5) + ";"(1) + NUL(1) if ((envbuff = (char *)malloc(envbufflen)) == NULL) { From svnnotify @ sourceforge.jp Wed Oct 1 14:52:41 2014 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 01 Oct 2014 14:52:41 +0900 Subject: [Ttssh2-commit] =?utf-8?q?=5B5672=5D__shell_=E3=81=AE_CHANNEL_?= =?utf-8?b?44GM6ZaJ44GY44Gf44Go44GNIFNTSDJfTVNHX0RJU0NPTk5FQ1Qg44KS6YCB?= =?utf-8?b?5L+h44GZ44KL44Gu44KS44KE44KB44Gf?= Message-ID: <1412142761.388064.26057.nullmailer@users.sourceforge.jp> Revision: 5672 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5672 Author: maya Date: 2014-10-01 14:52:38 +0900 (Wed, 01 Oct 2014) Log Message: ----------- shell の CHANNEL が閉じたとき SSH2_MSG_DISCONNECT を送信するのをやめた #34403 SSH2でログアウト時に SSH2_MSG_DISCONNECT(SSH2_DISCONNECT_PROTOCOL_ERROR) Ticket Links: ------------ http://sourceforge.jp/projects/ttssh2/tracker/detail/34403 Modified Paths: -------------- trunk/ttssh2/ttxssh/ssh.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/ssh.c =================================================================== --- trunk/ttssh2/ttxssh/ssh.c 2014-10-01 05:46:33 UTC (rev 5671) +++ trunk/ttssh2/ttxssh/ssh.c 2014-10-01 05:52:38 UTC (rev 5672) @@ -8556,6 +8556,11 @@ notify_verbose_message(pvar, log, LOG_LEVEL_VERBOSE); if (c->type == TYPE_SHELL) { + // notify_closed_connection() \x82\xA9\x82\xE7\x8CĂ?\xEA\x82\xE9 SSH_notify_disconnecting() \x82?\x86\x82\xC5 + // SSH2_MSG_CHANNEL_CLOSE \x82\xAA\x91\x97\x90M\x82\xB3\x82\xEA\x82\xE9\x82??C\x82\xB9\x82\xE9\x81B + // \x83N\x83\x89\x83C\x83A\x83\x93\x83g\x82\xA9\x82\xE7 SSH2_MSG_DISCONNECT \x82?\xE7\x82?\xAD\x82Ă\xE0\x81A\x82\xB7\x82?Ă\xCC CHANNEL \x82\xAA\x95?\xB6\x82\xEA\x82\xCE + // \x83T\x81[\x83o\x82\xA9\x82\xE7 SSH2_MSG_DISCONNECT \x82\xAA\x91\x97\x82\xE7\x82\xEA\x82Ă\xAD\x82邱\x82?\xF0\x8A\xFA\x91?\xB7\x82\xE9\x81B + /* msg = buffer_init(); if (msg == NULL) { // TODO: error check @@ -8574,6 +8579,7 @@ buffer_free(msg); notify_verbose_message(pvar, "SSH2_MSG_DISCONNECT was sent at handle_SSH2_channel_close().", LOG_LEVEL_VERBOSE); + */ // TCP connection closed notify_closed_connection(pvar); From svnnotify @ sourceforge.jp Thu Oct 2 01:40:55 2014 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 02 Oct 2014 01:40:55 +0900 Subject: [Ttssh2-commit] =?utf-8?b?WzU2NzNdICDjgIzjg5fjg6zjgqTjg7Pjg4Y=?= =?utf-8?b?44Kt44K544OI44CN44Gv6Kiz44Go44GX44Gm44GK44GL44GX44GE44Gu44Gn?= =?utf-8?b?44CM44OX44Os44Kk44Oz44OR44K544Ov44O844OJ44CN44Gr5L+u5q2j?= Message-ID: <1412181655.952244.2948.nullmailer@users.sourceforge.jp> Revision: 5673 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5673 Author: maya Date: 2014-10-02 01:40:55 +0900 (Thu, 02 Oct 2014) Log Message: ----------- 「プレインテキスト」は訳としておかしいので「プレインパスワード」に修正 Modified Paths: -------------- trunk/installer/release/lang/Japanese.lng -------------- next part -------------- Modified: trunk/installer/release/lang/Japanese.lng =================================================================== --- trunk/installer/release/lang/Japanese.lng 2014-10-01 05:52:38 UTC (rev 5672) +++ trunk/installer/release/lang/Japanese.lng 2014-10-01 16:40:55 UTC (rev 5673) @@ -528,7 +528,7 @@ DLG_AUTH_PASSWORD=\x83p\x83X\x83t\x83\x8C\x81[\x83Y(&P): DLG_AUTH_REMEMBER_PASSWORD=\x83p\x83X\x83\x8F\x81[\x83h\x82\xF0\x83\x81\x83\x82\x83\x8A\x8F\xE3\x82?L\x89\xAF\x82\xB7\x82\xE9(&M) DLG_AUTH_FWDAGENT=\x83G\x81[\x83W\x83F\x83\x93\x83g\x93]\x91\x97\x82\xB7\x82\xE9(&O) -DLG_AUTH_METHOD_PASSWORD=\x83v\x83\x8C\x83C\x83\x93\x83e\x83L\x83X\x83g\x82\xF0\x8Eg\x82\xA4(&L) +DLG_AUTH_METHOD_PASSWORD=\x83v\x83\x8C\x83C\x83\x93\x83p\x83X\x83\x8F\x81[\x83h\x82\xF0\x8Eg\x82\xA4(&L) DLG_AUTH_METHOD_RSA=&RSA/DSA/ECDSA/ED25519\x8C\xAE\x82\xF0\x8Eg\x82\xA4 DLG_AUTH_METHOD_RHOST=r&hosts(SSH1)\x82\xF0\x8Eg\x82\xA4 DLG_AUTH_METHOD_CHALLENGE1=\x83`\x83\x83\x83\x8C\x83\x93\x83W\x83\x8C\x83X\x83|\x83\x93\x83X\x94F\x8F?\xF0\x8Eg\x82\xA4(&TIS) @@ -544,7 +544,7 @@ DLG_AUTHSETUP_TITLE=TTSSH: \x94F\x8F??\xE8 DLG_AUTHSETUP_BANNER=\x92?\xED\x8Eg\x97p\x82\xB7\x82\xE9\x94F\x8F?\xFB\x8E\xAE: DLG_AUTHSETUP_USERNAME=\x83\x86\x81[\x83U\x96\xBC(&N): -DLG_AUTHSETUP_METHOD_PASSWORD=\x83v\x83\x8C\x83C\x83\x93\x83e\x83L\x83X\x83g\x82\xF0\x8Eg\x82\xA4(&L) +DLG_AUTHSETUP_METHOD_PASSWORD=\x83v\x83\x8C\x83C\x83\x93\x83p\x83X\x83\x8F\x81[\x83h\x82\xF0\x8Eg\x82\xA4(&L) DLG_AUTHSETUP_METHOD_RSA=&RSA/DSA/ECDSA/ED25519\x8C\xAE\x82\xF0\x8Eg\x82\xA4 DLG_AUTHSETUP_METHOD_RHOST=r&hosts\x82\xF0\x8Eg\x82\xA4(SSH1) DLG_AUTHSETUP_METHOD_CHALLENGE=\x83`\x83\x83\x83\x8C\x83\x93\x83W\x83\x8C\x83X\x83|\x83\x93\x83X\x94F\x8F?\xF0\x8Eg\x82\xA4(SSH1:TIS, SSH2:\x83L\x81[\x83{\x81[\x83h\x83C\x83\x93\x83^\x83\x89\x83N\x83e\x83B\x83u)(&T) From svnnotify @ sourceforge.jp Thu Oct 2 02:23:46 2014 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 02 Oct 2014 02:23:46 +0900 Subject: [Ttssh2-commit] =?utf-8?q?=5B5674=5D__plain_password_=E3=81=AB?= =?utf-8?b?44Gk44GE44Gm6Kqs5piO44KS6L+95Yqg?= Message-ID: <1412184226.383509.19813.nullmailer@users.sourceforge.jp> Revision: 5674 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5674 Author: maya Date: 2014-10-02 02:23:45 +0900 (Thu, 02 Oct 2014) Log Message: ----------- plain password について説明を追加 Modified Paths: -------------- trunk/doc/en/html/usage/ssh.html trunk/doc/ja/html/usage/ssh.html -------------- next part -------------- Modified: trunk/doc/en/html/usage/ssh.html =================================================================== --- trunk/doc/en/html/usage/ssh.html 2014-10-01 16:40:55 UTC (rev 5673) +++ trunk/doc/en/html/usage/ssh.html 2014-10-01 17:23:45 UTC (rev 5674) @@ -56,7 +56,8 @@ For example, the OpenSSH client will be able to login to the server without regard to the difference the password and the keyboard-interactive authentication. However, the TTSSH can not login to the server with the keyboard-interactive and public key authentication by using the password authentication.