[Ttssh2-commit] [3631] 隠しオプション "/nosecuritywarning" を追加した。

Back to archive index

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ƒ_ƒCƒAƒƒO‚ð•\Ž¦‚³‚¹‚¸‚É return success ‚·‚éB
+	if (pvar->nocheck_known_hosts == TRUE) {
+		return TRUE;
+	}
+
 	// known_hostsƒ_ƒCƒAƒƒO‚Í“¯Šú“I‚É•\Ž¦‚³‚¹A‚±‚ÌŽž“_‚É‚¨‚¢‚ㆁ[ƒU‚ÉŠm”F
 	// ‚³‚¹‚é•K—v‚ª‚ ‚邽‚߁A’¼ÚƒR[ƒ‹‚ɕύX‚·‚éB
 	// ‚±‚ê‚É‚æ‚èknown_hosts‚ÌŠm”F‚ð‘Ò‚½‚¸‚ɁAƒT[ƒ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 @@
 			// ƒpƒXƒ[ƒh‚ð•·‚­ (2006.9.18 maya)
 			pvar->ask4passwd = 1;
 
+		} else if (MATCH_STR(option + 1, "nosecuritywarning") == 0) {
+			// known_hostsƒ`ƒFƒbƒN‚ð‚µ‚È‚¢B“–ŠYƒIƒvƒVƒ‡ƒ“‚ðŽg‚¤‚ƁAƒZƒLƒ…ƒŠƒeƒB«‚ª’ቺ‚·‚é
+			// ‚½‚߁A‰B‚µƒIƒvƒVƒ‡ƒ“ˆµ‚¢‚Æ‚·‚éB
+			// (2009.10.4 yutaka)
+			pvar->nocheck_known_hosts = TRUE;
+
 		}
 		else {	// Other (not ttssh) option
 			return OPTION_NONE;	// ttssh‚̃IƒvƒVƒ‡ƒ“‚Å‚Í‚È‚¢‚̂ŏÁ‚³‚È‚¢

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



Ttssh2-commit メーリングリストの案内
Back to archive index