| 1789 |
if (pvar->socket != INVALID_SOCKET) { |
if (pvar->socket != INVALID_SOCKET) { |
| 1790 |
if (SSHv1(pvar)) { |
if (SSHv1(pvar)) { |
| 1791 |
SSH_get_server_ID_info(pvar, buf, sizeof(buf)); |
SSH_get_server_ID_info(pvar, buf, sizeof(buf)); |
| 1792 |
|
#ifdef I18N |
| 1793 |
|
strcpy(pvar->ts->UIMsg, "Server ID: "); |
| 1794 |
|
UTIL_get_lang_msg("DLG_ABOUT_SERVERID", pvar); |
| 1795 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1796 |
|
#else |
| 1797 |
append_about_text(dlg, "Server ID: ", buf); |
append_about_text(dlg, "Server ID: ", buf); |
| 1798 |
|
#endif |
| 1799 |
SSH_get_protocol_version_info(pvar, buf, sizeof(buf)); |
SSH_get_protocol_version_info(pvar, buf, sizeof(buf)); |
| 1800 |
|
#ifdef I18N |
| 1801 |
|
strcpy(pvar->ts->UIMsg, "Using protocol: "); |
| 1802 |
|
UTIL_get_lang_msg("DLG_ABOUT_PROTOCOL", pvar); |
| 1803 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1804 |
|
#else |
| 1805 |
append_about_text(dlg, "Using protocol: ", buf); |
append_about_text(dlg, "Using protocol: ", buf); |
| 1806 |
|
#endif |
| 1807 |
CRYPT_get_cipher_info(pvar, buf, sizeof(buf)); |
CRYPT_get_cipher_info(pvar, buf, sizeof(buf)); |
| 1808 |
|
#ifdef I18N |
| 1809 |
|
strcpy(pvar->ts->UIMsg, "Encryption: "); |
| 1810 |
|
UTIL_get_lang_msg("DLG_ABOUT_ENCRYPTION", pvar); |
| 1811 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1812 |
|
#else |
| 1813 |
append_about_text(dlg, "Encryption: ", buf); |
append_about_text(dlg, "Encryption: ", buf); |
| 1814 |
|
#endif |
| 1815 |
CRYPT_get_server_key_info(pvar, buf, sizeof(buf)); |
CRYPT_get_server_key_info(pvar, buf, sizeof(buf)); |
| 1816 |
|
#ifdef I18N |
| 1817 |
|
strcpy(pvar->ts->UIMsg, "Server keys: "); |
| 1818 |
|
UTIL_get_lang_msg("DLG_ABOUT_SERVERKEY", pvar); |
| 1819 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1820 |
|
#else |
| 1821 |
append_about_text(dlg, "Server keys: ", buf); |
append_about_text(dlg, "Server keys: ", buf); |
| 1822 |
|
#endif |
| 1823 |
AUTH_get_auth_info(pvar, buf, sizeof(buf)); |
AUTH_get_auth_info(pvar, buf, sizeof(buf)); |
| 1824 |
|
#ifdef I18N |
| 1825 |
|
strcpy(pvar->ts->UIMsg, "Authentication: "); |
| 1826 |
|
UTIL_get_lang_msg("DLG_ABOUT_AUTH", pvar); |
| 1827 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1828 |
|
#else |
| 1829 |
append_about_text(dlg, "Authentication: ", buf); |
append_about_text(dlg, "Authentication: ", buf); |
| 1830 |
|
#endif |
| 1831 |
SSH_get_compression_info(pvar, buf, sizeof(buf)); |
SSH_get_compression_info(pvar, buf, sizeof(buf)); |
| 1832 |
|
#ifdef I18N |
| 1833 |
|
strcpy(pvar->ts->UIMsg, "Compression: "); |
| 1834 |
|
UTIL_get_lang_msg("DLG_ABOUT_COMP", pvar); |
| 1835 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1836 |
|
#else |
| 1837 |
append_about_text(dlg, "Compression: ", buf); |
append_about_text(dlg, "Compression: ", buf); |
| 1838 |
|
#endif |
| 1839 |
|
|
| 1840 |
} else { // SSH2 |
} else { // SSH2 |
| 1841 |
SSH_get_server_ID_info(pvar, buf, sizeof(buf)); |
SSH_get_server_ID_info(pvar, buf, sizeof(buf)); |
| 1842 |
|
#ifdef I18N |
| 1843 |
|
strcpy(pvar->ts->UIMsg, "Server ID: "); |
| 1844 |
|
UTIL_get_lang_msg("DLG_ABOUT_SERVERID", pvar); |
| 1845 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1846 |
|
#else |
| 1847 |
append_about_text(dlg, "Server ID: ", buf); |
append_about_text(dlg, "Server ID: ", buf); |
| 1848 |
|
#endif |
| 1849 |
|
|
| 1850 |
|
#ifdef I18N |
| 1851 |
|
strcpy(pvar->ts->UIMsg, "Client ID: "); |
| 1852 |
|
UTIL_get_lang_msg("DLG_ABOUT_CLIENTID", pvar); |
| 1853 |
|
append_about_text(dlg, pvar->ts->UIMsg, pvar->client_version_string); |
| 1854 |
|
#else |
| 1855 |
append_about_text(dlg, "Client ID: ", pvar->client_version_string); |
append_about_text(dlg, "Client ID: ", pvar->client_version_string); |
| 1856 |
|
#endif |
| 1857 |
|
|
| 1858 |
SSH_get_protocol_version_info(pvar, buf, sizeof(buf)); |
SSH_get_protocol_version_info(pvar, buf, sizeof(buf)); |
| 1859 |
|
#ifdef I18N |
| 1860 |
|
strcpy(pvar->ts->UIMsg, "Using protocol: "); |
| 1861 |
|
UTIL_get_lang_msg("DLG_ABOUT_PROTOCOL", pvar); |
| 1862 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1863 |
|
#else |
| 1864 |
append_about_text(dlg, "Using protocol: ", buf); |
append_about_text(dlg, "Using protocol: ", buf); |
| 1865 |
|
#endif |
| 1866 |
|
|
| 1867 |
if (pvar->kex_type == KEX_DH_GRP1_SHA1) { |
if (pvar->kex_type == KEX_DH_GRP1_SHA1) { |
| 1868 |
strcpy(buf, KEX_DH1); |
strcpy(buf, KEX_DH1); |
| 1878 |
} else { |
} else { |
| 1879 |
strcpy(buf, "ssh-rsa"); |
strcpy(buf, "ssh-rsa"); |
| 1880 |
} |
} |
| 1881 |
|
#ifdef I18N |
| 1882 |
|
strcpy(pvar->ts->UIMsg, "Host Key: "); |
| 1883 |
|
UTIL_get_lang_msg("DLG_ABOUT_HOSTKEY", pvar); |
| 1884 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1885 |
|
#else |
| 1886 |
append_about_text(dlg, "Host Key: ", buf); |
append_about_text(dlg, "Host Key: ", buf); |
| 1887 |
|
#endif |
| 1888 |
|
|
| 1889 |
// add HMAC algorithm (2004.12.17 yutaka) |
// add HMAC algorithm (2004.12.17 yutaka) |
| 1890 |
buf[0] = '\0'; |
buf[0] = '\0'; |
| 1893 |
} else if (pvar->ctos_hmac == HMAC_MD5) { |
} else if (pvar->ctos_hmac == HMAC_MD5) { |
| 1894 |
strcat(buf, "hmac-md5"); |
strcat(buf, "hmac-md5"); |
| 1895 |
} |
} |
| 1896 |
|
#ifdef I18N |
| 1897 |
|
strcpy(pvar->ts->UIMsg, " to server, "); |
| 1898 |
|
UTIL_get_lang_msg("DLG_ABOUT_TOSERVER", pvar); |
| 1899 |
|
strcat(buf, pvar->ts->UIMsg); |
| 1900 |
|
#else |
| 1901 |
strcat(buf, " to server, "); |
strcat(buf, " to server, "); |
| 1902 |
|
#endif |
| 1903 |
if (pvar->stoc_hmac == HMAC_SHA1) { |
if (pvar->stoc_hmac == HMAC_SHA1) { |
| 1904 |
strcat(buf, "hmac-sha1"); |
strcat(buf, "hmac-sha1"); |
| 1905 |
} else if (pvar->stoc_hmac == HMAC_MD5) { |
} else if (pvar->stoc_hmac == HMAC_MD5) { |
| 1906 |
strcat(buf, "hmac-md5"); |
strcat(buf, "hmac-md5"); |
| 1907 |
} |
} |
| 1908 |
|
#ifdef I18N |
| 1909 |
|
strcpy(pvar->ts->UIMsg, " from server"); |
| 1910 |
|
UTIL_get_lang_msg("DLG_ABOUT_FROMSERVER", pvar); |
| 1911 |
|
strcat(buf, pvar->ts->UIMsg); |
| 1912 |
|
#else |
| 1913 |
strcat(buf, " from server"); |
strcat(buf, " from server"); |
| 1914 |
|
#endif |
| 1915 |
append_about_text(dlg, "HMAC: ", buf); |
append_about_text(dlg, "HMAC: ", buf); |
| 1916 |
|
|
| 1917 |
CRYPT_get_cipher_info(pvar, buf, sizeof(buf)); |
CRYPT_get_cipher_info(pvar, buf, sizeof(buf)); |
| 1918 |
|
#ifdef I18N |
| 1919 |
|
strcpy(pvar->ts->UIMsg, "Encryption: "); |
| 1920 |
|
UTIL_get_lang_msg("DLG_ABOUT_ENCRYPTION", pvar); |
| 1921 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1922 |
|
#else |
| 1923 |
append_about_text(dlg, "Encryption: ", buf); |
append_about_text(dlg, "Encryption: ", buf); |
| 1924 |
|
#endif |
| 1925 |
CRYPT_get_server_key_info(pvar, buf, sizeof(buf)); |
CRYPT_get_server_key_info(pvar, buf, sizeof(buf)); |
| 1926 |
|
#ifdef I18N |
| 1927 |
|
strcpy(pvar->ts->UIMsg, "Server keys: "); |
| 1928 |
|
UTIL_get_lang_msg("DLG_ABOUT_SERVERKEY", pvar); |
| 1929 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1930 |
|
#else |
| 1931 |
append_about_text(dlg, "Server keys: ", buf); |
append_about_text(dlg, "Server keys: ", buf); |
| 1932 |
|
#endif |
| 1933 |
AUTH_get_auth_info(pvar, buf, sizeof(buf)); |
AUTH_get_auth_info(pvar, buf, sizeof(buf)); |
| 1934 |
|
#ifdef I18N |
| 1935 |
|
strcpy(pvar->ts->UIMsg, "Authentication: "); |
| 1936 |
|
UTIL_get_lang_msg("DLG_ABOUT_AUTH", pvar); |
| 1937 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1938 |
|
#else |
| 1939 |
append_about_text(dlg, "Authentication: ", buf); |
append_about_text(dlg, "Authentication: ", buf); |
| 1940 |
|
#endif |
| 1941 |
|
|
| 1942 |
SSH_get_compression_info(pvar, buf, sizeof(buf)); |
SSH_get_compression_info(pvar, buf, sizeof(buf)); |
| 1943 |
if (pvar->ctos_compression == COMP_DELAYED) { // 遅延パケット圧縮の場合 (2006.6.23 yutaka) |
if (pvar->ctos_compression == COMP_DELAYED) { // 遅延パケット圧縮の場合 (2006.6.23 yutaka) |
| 1944 |
|
#ifdef I18N |
| 1945 |
|
strcpy(pvar->ts->UIMsg, "Delayed Compression: "); |
| 1946 |
|
UTIL_get_lang_msg("DLG_ABOUT_COMPDELAY", pvar); |
| 1947 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1948 |
|
#else |
| 1949 |
append_about_text(dlg, "Delayed Compression: ", buf); |
append_about_text(dlg, "Delayed Compression: ", buf); |
| 1950 |
|
#endif |
| 1951 |
} else { |
} else { |
| 1952 |
|
#ifdef I18N |
| 1953 |
|
strcpy(pvar->ts->UIMsg, "Compression: "); |
| 1954 |
|
UTIL_get_lang_msg("DLG_ABOUT_COMP", pvar); |
| 1955 |
|
append_about_text(dlg, pvar->ts->UIMsg, buf); |
| 1956 |
|
#else |
| 1957 |
append_about_text(dlg, "Compression: ", buf); |
append_about_text(dlg, "Compression: ", buf); |
| 1958 |
|
#endif |
| 1959 |
} |
} |
| 1960 |
|
|
| 1961 |
} |
} |
| 3838 |
|
|
| 3839 |
/* |
/* |
| 3840 |
* $Log: not supported by cvs2svn $ |
* $Log: not supported by cvs2svn $ |
| 3841 |
|
* Revision 1.51 2007/01/04 11:59:03 maya |
| 3842 |
|
* フォントを変更する部分を追加した。 |
| 3843 |
|
* |
| 3844 |
* Revision 1.50 2007/01/04 08:36:42 maya |
* Revision 1.50 2007/01/04 08:36:42 maya |
| 3845 |
* フォントを変更する部分を追加した。 |
* フォントを変更する部分を追加した。 |
| 3846 |
* |
* |