[Ttssh2-commit] [4570] Widnows 2000 未満の場合には SSHFP を見に行かないようにした

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 8月 4日 (木) 15:40:46 JST


Revision: 4570
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4570
Author:   maya
Date:     2011-08-04 15:40:46 +0900 (Thu, 04 Aug 2011)

Log Message:
-----------
Widnows 2000 未満の場合には SSHFP を見に行かないようにした

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


-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/dns.c
===================================================================
--- trunk/ttssh2/ttxssh/dns.c	2011-08-04 06:00:17 UTC (rev 4569)
+++ trunk/ttssh2/ttxssh/dns.c	2011-08-04 06:40:46 UTC (rev 4570)
@@ -59,7 +59,15 @@
 	int hostkey_alg, hostkey_dtype, hostkey_dlen;
 	BYTE *hostkey_digest;
 	int found = DNS_VERIFY_NOTFOUND;
+	OSVERSIONINFO osvi;
 
+	osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
+	GetVersionEx(&osvi);
+	if (osvi.dwMajorVersion < 5) {
+		// DnsQuery ‚Í Windows 2000 ˆÈã‚Å‚µ‚©“®ì‚µ‚È‚¢‚½‚ß
+		return DNS_VERIFY_NONE;
+	}
+
 	switch (key->type) {
 	case KEY_RSA:
 		hostkey_alg = SSHFP_KEY_RSA;



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