[Ttssh2-commit] [5576] #33743: ホスト鍵のfingerprint

svnno****@sourc***** svnno****@sourc*****
2014年 5月 1日 (木) 23:19:21 JST


Revision: 5576
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5576
Author:   yutakapon
Date:     2014-05-01 23:19:20 +0900 (Thu, 01 May 2014)
Log Message:
-----------
#33743: ホスト鍵のfingerprint

SSH1の場合にも表示するようにした。

Ticket Links:
------------
    http://sourceforge.jp/projects/ttssh2/tracker/detail/33743

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/ttxssh.c

-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2014-05-01 14:09:18 UTC (rev 5575)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2014-05-01 14:19:20 UTC (rev 5576)
@@ -2450,19 +2450,19 @@
 				UTIL_get_lang_msg("DLG_ABOUT_COMP", pvar, "Compression:");
 				append_about_text(dlg, pvar->ts->UIMsg, buf);
 			}
+		}
 
-			// \x83z\x83X\x83g\x8C\xF6\x8AJ\x8C\xAE\x82\xCCfingerprint\x82\xF0\x95\\x8E\xA6\x82\xB7\x82\xE9\x81B
-			// Random art\x82̕\\x8E\xA6\x82\xAA\x95\xF6\x82\xEA\x82Ă\xB5\x82܂\xA4\x82̂\xAA\x89ۑ\xE8\x81B
-			// (2014.5.1 yutaka)
-			fp = key_fingerprint(&pvar->hosts_state.hostkey, SSH_FP_HEX);
-			UTIL_get_lang_msg("DLG_ABOUT_FINGERPRINT", pvar, "Host key's fingerprint:");
-			append_about_text(dlg, pvar->ts->UIMsg, fp);
-			free(fp);
+		// \x83z\x83X\x83g\x8C\xF6\x8AJ\x8C\xAE\x82\xCCfingerprint\x82\xF0\x95\\x8E\xA6\x82\xB7\x82\xE9\x81B
+		// Random art\x82̕\\x8E\xA6\x82\xAA\x95\xF6\x82\xEA\x82Ă\xB5\x82܂\xA4\x82̂\xAA\x89ۑ\xE8\x81B
+		// (2014.5.1 yutaka)
+		fp = key_fingerprint(&pvar->hosts_state.hostkey, SSH_FP_HEX);
+		UTIL_get_lang_msg("DLG_ABOUT_FINGERPRINT", pvar, "Host key's fingerprint:");
+		append_about_text(dlg, pvar->ts->UIMsg, fp);
+		free(fp);
 
-			fp = key_fingerprint(&pvar->hosts_state.hostkey, SSH_FP_RANDOMART);
-			append_about_text(dlg, "", fp);
-			free(fp);
-		}
+		fp = key_fingerprint(&pvar->hosts_state.hostkey, SSH_FP_RANDOMART);
+		append_about_text(dlg, "", fp);
+		free(fp);
 	}
 }
 



Ttssh2-commit メーリングリストの案内