svnno****@sourc*****
svnno****@sourc*****
2011年 7月 27日 (水) 21:27:16 JST
Revision: 4540 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4540 Author: doda Date: 2011-07-27 21:27:15 +0900 (Wed, 27 Jul 2011) Log Message: ----------- デバッグ用のメッセージボックスの表示を削除 Modified Paths: -------------- trunk/ttssh2/ttxssh/hosts.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/hosts.c =================================================================== --- trunk/ttssh2/ttxssh/hosts.c 2011-07-27 08:50:14 UTC (rev 4539) +++ trunk/ttssh2/ttxssh/hosts.c 2011-07-27 12:27:15 UTC (rev 4540) @@ -1665,7 +1665,6 @@ int hostkey_alg, hostkey_dtype, hostkey_dlen; BYTE *hostkey_digest; int found = DNS_VERIFY_NONE; - char buff[1024]; switch (key->type) { case KEY_RSA: @@ -1682,7 +1681,7 @@ hostkey_alg = SSHFP_KEY_ECDSA; hostkey_dtype = SSHFP_HASH_SHA256; break; - default: // Un-supported algorighm + default: // Un-supported algorithm hostkey_alg = SSHFP_KEY_RESERVED; hostkey_dtype = SSHFP_HASH_RESERVED; } @@ -1703,16 +1702,10 @@ if (t->Algorithm == hostkey_alg && t->DigestType == hostkey_dtype) { if (hostkey_dlen == p->wDataLength-2 && memcmp(hostkey_digest, t->Digest, hostkey_dlen) == 0) { found = DNS_VERIFY_MATCH; - _snprintf_s(buff, sizeof(buff), _TRUNCATE, "Match: alg=%d, dgst=%d, flags=%d (%x)", - t->Algorithm, t->DigestType, p->Flags); - MessageBox(NULL, buff, "DNS Verify Match", MB_OK); break; } else { found = DNS_VERIFY_MISMATCH; - _snprintf_s(buff, sizeof(buff), _TRUNCATE, "Missmatch: alg=%d, dgst=%d, flags=%d (%x)", - t->Algorithm, t->DigestType, p->Flags); - MessageBox(NULL, buff, "DNS Verify Missmatch", MB_OK); break; } }