svnno****@sourc*****
svnno****@sourc*****
2009年 10月 4日 (日) 00:52:58 JST
Revision: 3631 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3631 Author: yutakapon Date: 2009-10-04 00:52:58 +0900 (Sun, 04 Oct 2009) Log Message: ----------- é ããªãã·ã§ã³"/nosecuritywarning"ã追å ããã known_hosts ã®ãã§ãã¯ãã¤ã¢ãã°ãåºç¾ãããªãã Modified Paths: -------------- trunk/ttssh2/ttxssh/hosts.c trunk/ttssh2/ttxssh/ttxssh.c trunk/ttssh2/ttxssh/ttxssh.h -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/hosts.c =================================================================== --- trunk/ttssh2/ttxssh/hosts.c 2009-10-03 14:49:53 UTC (rev 3630) +++ trunk/ttssh2/ttxssh/hosts.c 2009-10-03 15:52:58 UTC (rev 3631) @@ -1543,6 +1543,11 @@ free(pvar->hosts_state.prefetched_hostname); pvar->hosts_state.prefetched_hostname = _strdup(hostname); + // "/nosecuritywarning"ªwè³êÄ¢éêA_CAOð\¦³¹¸É return success ·éB + if (pvar->nocheck_known_hosts == TRUE) { + return TRUE; + } + // known_hosts_CAOͯúIÉ\¦³¹A±Ì_ɨ¢Ä[UÉmF // ³¹éKvª é½ßA¼ÚR[ÉÏX·éB // ±êÉæèknown_hostsÌmFðÒ½¸ÉAT[oÖ[UîñðÁĵܤâèðñð·éB Modified: trunk/ttssh2/ttxssh/ttxssh.c =================================================================== --- trunk/ttssh2/ttxssh/ttxssh.c 2009-10-03 14:49:53 UTC (rev 3630) +++ trunk/ttssh2/ttxssh/ttxssh.c 2009-10-03 15:52:58 UTC (rev 3631) @@ -1655,6 +1655,12 @@ // pX[hð· (2006.9.18 maya) pvar->ask4passwd = 1; + } else if (MATCH_STR(option + 1, "nosecuritywarning") == 0) { + // known_hosts`FbNðµÈ¢BYIvVðg¤ÆAZL eB«ªáº·é + // ½ßABµIvVµ¢Æ·éB + // (2009.10.4 yutaka) + pvar->nocheck_known_hosts = TRUE; + } else { // Other (not ttssh) option return OPTION_NONE; // ttsshÌIvVÅÍÈ¢ÌÅÁ³È¢ Modified: trunk/ttssh2/ttxssh/ttxssh.h =================================================================== --- trunk/ttssh2/ttxssh/ttxssh.h 2009-10-03 14:49:53 UTC (rev 3630) +++ trunk/ttssh2/ttxssh/ttxssh.h 2009-10-03 15:52:58 UTC (rev 3631) @@ -256,6 +256,8 @@ BOOL agentfwd_enable; BOOL origDisableTCPEchoCR; + + BOOL nocheck_known_hosts; } TInstVar; #define LOG_LEVEL_FATAL 5