| 492 |
return cur_decompressed_bytes; |
return cur_decompressed_bytes; |
| 493 |
default: |
default: |
| 494 |
#ifdef I18N |
#ifdef I18N |
| 495 |
|
strcpy(pvar->ts->UIMsg, "Invalid compressed data in received packet"); |
| 496 |
|
UTIL_get_lang_msg("MSG_SSH_INVALID_COMPDATA_ERROR", pvar); |
| 497 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 498 |
#else |
#else |
| 499 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 500 |
"Invalid compressed data in received packet"); |
"Invalid compressed data in received packet"); |
| 527 |
if (pvar->ssh_state.payload_grabbed > in_buffer) { |
if (pvar->ssh_state.payload_grabbed > in_buffer) { |
| 528 |
char buf[128]; |
char buf[128]; |
| 529 |
#ifdef I18N |
#ifdef I18N |
| 530 |
|
strcpy(pvar->ts->UIMsg, "Received truncated packet (%ld > %d) @ grab_payload()"); |
| 531 |
|
UTIL_get_lang_msg("MSG_SSH_TRUNCATED_PKT_ERROR", pvar); |
| 532 |
|
_snprintf(buf, sizeof(buf), pvar->ts->UIMsg, |
| 533 |
|
pvar->ssh_state.payload_grabbed, in_buffer); |
| 534 |
#else |
#else |
| 535 |
_snprintf(buf, sizeof(buf), "Received truncated packet (%ld > %d) @ grab_payload()", |
_snprintf(buf, sizeof(buf), "Received truncated packet (%ld > %d) @ grab_payload()", |
| 536 |
pvar->ssh_state.payload_grabbed, in_buffer); |
pvar->ssh_state.payload_grabbed, in_buffer); |
| 556 |
if (pvar->ssh_state.payload_grabbed > in_buffer) { |
if (pvar->ssh_state.payload_grabbed > in_buffer) { |
| 557 |
char buf[128]; |
char buf[128]; |
| 558 |
#ifdef I18N |
#ifdef I18N |
| 559 |
|
strcpy(pvar->ts->UIMsg, "Received truncated packet (%ld > %d) @ grab_payload_limited()"); |
| 560 |
|
UTIL_get_lang_msg("MSG_SSH_TRUNCATED_PKT_LIM_ERROR", pvar); |
| 561 |
|
_snprintf(buf, sizeof(buf), pvar->ts->UIMsg, |
| 562 |
|
pvar->ssh_state.payload_grabbed, in_buffer); |
| 563 |
#else |
#else |
| 564 |
_snprintf(buf, sizeof(buf), "Received truncated packet (%ld > %d) @ grab_payload_limited()", |
_snprintf(buf, sizeof(buf), "Received truncated packet (%ld > %d) @ grab_payload_limited()", |
| 565 |
pvar->ssh_state.payload_grabbed, in_buffer); |
pvar->ssh_state.payload_grabbed, in_buffer); |
| 595 |
if (SSHv1(pvar)) { |
if (SSHv1(pvar)) { |
| 596 |
if (CRYPT_detect_attack(pvar, pvar->ssh_state.payload, len)) { |
if (CRYPT_detect_attack(pvar, pvar->ssh_state.payload, len)) { |
| 597 |
#ifdef I18N |
#ifdef I18N |
| 598 |
|
strcpy(pvar->ts->UIMsg, "'CORE insertion attack' detected. Aborting connection."); |
| 599 |
|
UTIL_get_lang_msg("MSG_SSH_COREINS_ERROR", pvar); |
| 600 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 601 |
#else |
#else |
| 602 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 603 |
"'CORE insertion attack' detected. Aborting connection."); |
"'CORE insertion attack' detected. Aborting connection."); |
| 610 |
if (do_crc(pvar->ssh_state.payload, len - 4) != |
if (do_crc(pvar->ssh_state.payload, len - 4) != |
| 611 |
get_uint32_MSBfirst(pvar->ssh_state.payload + len - 4)) { |
get_uint32_MSBfirst(pvar->ssh_state.payload + len - 4)) { |
| 612 |
#ifdef I18N |
#ifdef I18N |
| 613 |
|
strcpy(pvar->ts->UIMsg, "Detected corrupted data; connection terminating."); |
| 614 |
|
UTIL_get_lang_msg("MSG_SSH_CORRUPTDATA_ERROR", pvar); |
| 615 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 616 |
#else |
#else |
| 617 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 618 |
"Detected corrupted data; connection terminating."); |
"Detected corrupted data; connection terminating."); |
| 637 |
(pvar, pvar->ssh_state.receiver_sequence_number, data, len + 4, |
(pvar, pvar->ssh_state.receiver_sequence_number, data, len + 4, |
| 638 |
data + len + 4)) { |
data + len + 4)) { |
| 639 |
#ifdef I18N |
#ifdef I18N |
| 640 |
|
strcpy(pvar->ts->UIMsg, "Detected corrupted data; connection terminating."); |
| 641 |
|
UTIL_get_lang_msg("MSG_SSH_CORRUPTDATA_ERROR", pvar); |
| 642 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 643 |
#else |
#else |
| 644 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 645 |
"Detected corrupted data; connection terminating."); |
"Detected corrupted data; connection terminating."); |
| 657 |
if (pvar->ssh_state.decompressing) { |
if (pvar->ssh_state.decompressing) { |
| 658 |
if (pvar->ssh_state.decompress_stream.avail_in != 0) { |
if (pvar->ssh_state.decompress_stream.avail_in != 0) { |
| 659 |
#ifdef I18N |
#ifdef I18N |
| 660 |
|
strcpy(pvar->ts->UIMsg, "Internal error: a packet was not fully decompressed.\n" |
| 661 |
|
"This is a bug, please report it."); |
| 662 |
|
UTIL_get_lang_msg("MSG_SSH_DECOMPRESS_ERROR", pvar); |
| 663 |
|
notify_nonfatal_error(pvar, pvar->ts->UIMsg); |
| 664 |
#else |
#else |
| 665 |
notify_nonfatal_error(pvar, |
notify_nonfatal_error(pvar, |
| 666 |
"Internal error: a packet was not fully decompressed.\n" |
"Internal error: a packet was not fully decompressed.\n" |
| 771 |
pvar->notification_events) == |
pvar->notification_events) == |
| 772 |
SOCKET_ERROR) { |
SOCKET_ERROR) { |
| 773 |
#ifdef I18N |
#ifdef I18N |
| 774 |
|
strcpy(pvar->ts->UIMsg, "A communications error occurred while sending an SSH packet.\n" |
| 775 |
|
"The connection will close."); |
| 776 |
|
UTIL_get_lang_msg("MSG_SSH_SEND_PKT_ERROR", pvar); |
| 777 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 778 |
#else |
#else |
| 779 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 780 |
"A communications error occurred while sending an SSH packet.\n" |
"A communications error occurred while sending an SSH packet.\n" |
| 812 |
if (deflate(&pvar->ssh_state.compress_stream, Z_SYNC_FLUSH) != |
if (deflate(&pvar->ssh_state.compress_stream, Z_SYNC_FLUSH) != |
| 813 |
Z_OK) { |
Z_OK) { |
| 814 |
#ifdef I18N |
#ifdef I18N |
| 815 |
|
strcpy(pvar->ts->UIMsg, "An error occurred while compressing packet data.\n" |
| 816 |
|
"The connection will close."); |
| 817 |
|
UTIL_get_lang_msg("MSG_SSH_COMP_ERROR", pvar); |
| 818 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 819 |
#else |
#else |
| 820 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 821 |
"An error occurred while compressing packet data.\n" |
"An error occurred while compressing packet data.\n" |
| 883 |
buffer_append(msg, "\0\0\0\0\0", 5); // 5 = packet-length(4) + padding(1) |
buffer_append(msg, "\0\0\0\0\0", 5); // 5 = packet-length(4) + padding(1) |
| 884 |
if (buffer_compress(&pvar->ssh_state.compress_stream, pvar->ssh_state.outbuf + 12, len, msg) == -1) { |
if (buffer_compress(&pvar->ssh_state.compress_stream, pvar->ssh_state.outbuf + 12, len, msg) == -1) { |
| 885 |
#ifdef I18N |
#ifdef I18N |
| 886 |
|
strcpy(pvar->ts->UIMsg, "An error occurred while compressing packet data.\n" |
| 887 |
|
"The connection will close."); |
| 888 |
|
UTIL_get_lang_msg("MSG_SSH_COMP_ERROR", pvar); |
| 889 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 890 |
#else |
#else |
| 891 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 892 |
"An error occurred while compressing packet data.\n" |
"An error occurred while compressing packet data.\n" |
| 1195 |
int description_len; |
int description_len; |
| 1196 |
char buf[2048]; |
char buf[2048]; |
| 1197 |
char FAR *explanation = ""; |
char FAR *explanation = ""; |
| 1198 |
|
#ifdef I18N |
| 1199 |
|
char uimsg[MAX_UIMSG]; |
| 1200 |
|
#endif |
| 1201 |
|
|
| 1202 |
if (SSHv1(pvar)) { |
if (SSHv1(pvar)) { |
| 1203 |
if (grab_payload(pvar, 4) |
if (grab_payload(pvar, 4) |
| 1232 |
|
|
| 1233 |
if (get_handler(pvar, SSH_SMSG_FAILURE) == handle_forwarding_failure) { |
if (get_handler(pvar, SSH_SMSG_FAILURE) == handle_forwarding_failure) { |
| 1234 |
#ifdef I18N |
#ifdef I18N |
| 1235 |
|
strcpy(pvar->ts->UIMsg, "\nIt may have disconnected because it was unable to forward a port you requested to be forwarded from the server.\n" |
| 1236 |
|
"This often happens when someone is already forwarding that port from the server."); |
| 1237 |
|
UTIL_get_lang_msg("MSG_SSH_UNABLE_FWD_ERROR", pvar); |
| 1238 |
|
strcpy(uimsg, pvar->ts->UIMsg); |
| 1239 |
|
explanation = uimsg; |
| 1240 |
#else |
#else |
| 1241 |
explanation = |
explanation = |
| 1242 |
"\nIt may have disconnected because it was unable to forward a port you requested to be forwarded from the server.\n" |
"\nIt may have disconnected because it was unable to forward a port you requested to be forwarded from the server.\n" |
| 1246 |
|
|
| 1247 |
if (description != NULL) { |
if (description != NULL) { |
| 1248 |
#ifdef I18N |
#ifdef I18N |
| 1249 |
|
strcpy(pvar->ts->UIMsg, "Server disconnected with message '%s'.%s"); |
| 1250 |
|
UTIL_get_lang_msg("MSG_SSH_SERVER_DISCON_ERROR", pvar); |
| 1251 |
|
_snprintf(buf, sizeof(buf), |
| 1252 |
|
pvar->ts->UIMsg, description, |
| 1253 |
|
explanation); |
| 1254 |
#else |
#else |
| 1255 |
_snprintf(buf, sizeof(buf), |
_snprintf(buf, sizeof(buf), |
| 1256 |
"Server disconnected with message '%s'.%s", description, |
"Server disconnected with message '%s'.%s", description, |
| 1258 |
#endif |
#endif |
| 1259 |
} else { |
} else { |
| 1260 |
#ifdef I18N |
#ifdef I18N |
| 1261 |
|
strcpy(pvar->ts->UIMsg, "Server disconnected (no reason given).%s"); |
| 1262 |
|
UTIL_get_lang_msg("MSG_SSH_SERVER_DISCON_NORES_ERROR", pvar); |
| 1263 |
|
_snprintf(buf, sizeof(buf), |
| 1264 |
|
pvar->ts->UIMsg, explanation); |
| 1265 |
#else |
#else |
| 1266 |
_snprintf(buf, sizeof(buf), |
_snprintf(buf, sizeof(buf), |
| 1267 |
"Server disconnected (no reason given).%s", explanation); |
"Server disconnected (no reason given).%s", explanation); |
| 1547 |
|
|
| 1548 |
if (!parse_protocol_ID(pvar, ID) || !negotiate_protocol(pvar)) { |
if (!parse_protocol_ID(pvar, ID) || !negotiate_protocol(pvar)) { |
| 1549 |
#ifdef I18N |
#ifdef I18N |
| 1550 |
|
strcpy(pvar->ts->UIMsg, "This program does not understand the server's version of the protocol."); |
| 1551 |
|
UTIL_get_lang_msg("MSG_SSH_VERSION_ERROR", pvar); |
| 1552 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 1553 |
#else |
#else |
| 1554 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 1555 |
"This program does not understand the server's version of the protocol."); |
"This program does not understand the server's version of the protocol."); |
| 1577 |
if ((pvar->Psend) (pvar->socket, TTSSH_ID, TTSSH_ID_len, |
if ((pvar->Psend) (pvar->socket, TTSSH_ID, TTSSH_ID_len, |
| 1578 |
0) != TTSSH_ID_len) { |
0) != TTSSH_ID_len) { |
| 1579 |
#ifdef I18N |
#ifdef I18N |
| 1580 |
|
strcpy(pvar->ts->UIMsg, "An error occurred while sending the SSH ID string.\n" |
| 1581 |
|
"The connection will close."); |
| 1582 |
|
UTIL_get_lang_msg("MSG_SSH_SEND_ID_ERROR", pvar); |
| 1583 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 1584 |
#else |
#else |
| 1585 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 1586 |
"An error occurred while sending the SSH ID string.\n" |
"An error occurred while sending the SSH ID string.\n" |
| 1812 |
char buf[1024]; |
char buf[1024]; |
| 1813 |
|
|
| 1814 |
#ifdef I18N |
#ifdef I18N |
| 1815 |
|
strcpy(pvar->ts->UIMsg, "Unexpected SSH2 message(%d) on current stage(%d)"); |
| 1816 |
|
UTIL_get_lang_msg("MSG_SSH_UNEXP_MSG2_ERROR", pvar); |
| 1817 |
|
_snprintf(buf, sizeof(buf), |
| 1818 |
|
pvar->ts->UIMsg, message, handle_message_stage); |
| 1819 |
#else |
#else |
| 1820 |
_snprintf(buf, sizeof(buf), |
_snprintf(buf, sizeof(buf), |
| 1821 |
"Unexpected SSH2 message(%d) on current stage(%d)", message, handle_message_stage); |
"Unexpected SSH2 message(%d) on current stage(%d)", message, handle_message_stage); |
| 1830 |
char buf[1024]; |
char buf[1024]; |
| 1831 |
|
|
| 1832 |
#ifdef I18N |
#ifdef I18N |
| 1833 |
|
strcpy(pvar->ts->UIMsg, "Unexpected packet type received: %d"); |
| 1834 |
|
UTIL_get_lang_msg("MSG_SSH_UNEXP_MSG_ERROR", pvar); |
| 1835 |
|
_snprintf(buf, sizeof(buf), |
| 1836 |
|
pvar->ts->UIMsg, message, handle_message_stage); |
| 1837 |
#else |
#else |
| 1838 |
_snprintf(buf, sizeof(buf), |
_snprintf(buf, sizeof(buf), |
| 1839 |
"Unexpected packet type received: %d", message); |
"Unexpected packet type received: %d", message); |
| 1876 |
static BOOL handle_pty_failure(PTInstVar pvar) |
static BOOL handle_pty_failure(PTInstVar pvar) |
| 1877 |
{ |
{ |
| 1878 |
#ifdef I18N |
#ifdef I18N |
| 1879 |
|
strcpy(pvar->ts->UIMsg, "The server cannot allocate a pseudo-terminal. " |
| 1880 |
|
"You may encounter some problems with the terminal."); |
| 1881 |
|
UTIL_get_lang_msg("MSG_SSH_ALLOC_TERMINAL_ERROR", pvar); |
| 1882 |
|
notify_nonfatal_error(pvar, pvar->ts->UIMsg); |
| 1883 |
#else |
#else |
| 1884 |
notify_nonfatal_error(pvar, |
notify_nonfatal_error(pvar, |
| 1885 |
"The server cannot allocate a pseudo-terminal. " |
"The server cannot allocate a pseudo-terminal. " |
| 1939 |
(&pvar->ssh_state.compress_stream, |
(&pvar->ssh_state.compress_stream, |
| 1940 |
pvar->ssh_state.compression_level) != Z_OK) { |
pvar->ssh_state.compression_level) != Z_OK) { |
| 1941 |
#ifdef I18N |
#ifdef I18N |
| 1942 |
|
strcpy(pvar->ts->UIMsg, "An error occurred while setting up compression.\n" |
| 1943 |
|
"The connection will close."); |
| 1944 |
|
UTIL_get_lang_msg("MSG_SSH_SETUP_COMP_ERROR", pvar); |
| 1945 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 1946 |
#else |
#else |
| 1947 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 1948 |
"An error occurred while setting up compression.\n" |
"An error occurred while setting up compression.\n" |
| 1974 |
if (inflateInit(&pvar->ssh_state.decompress_stream) != Z_OK) { |
if (inflateInit(&pvar->ssh_state.decompress_stream) != Z_OK) { |
| 1975 |
deflateEnd(&pvar->ssh_state.compress_stream); |
deflateEnd(&pvar->ssh_state.compress_stream); |
| 1976 |
#ifdef I18N |
#ifdef I18N |
| 1977 |
|
strcpy(pvar->ts->UIMsg, "An error occurred while setting up compression.\n" |
| 1978 |
|
"The connection will close."); |
| 1979 |
|
UTIL_get_lang_msg("MSG_SSH_SETUP_COMP_ERROR", pvar); |
| 1980 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 1981 |
#else |
#else |
| 1982 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 1983 |
"An error occurred while setting up compression.\n" |
"An error occurred while setting up compression.\n" |
| 2089 |
enque_simple_auth_handlers(pvar); |
enque_simple_auth_handlers(pvar); |
| 2090 |
} else { |
} else { |
| 2091 |
#ifdef I18N |
#ifdef I18N |
| 2092 |
|
strcpy(pvar->ts->UIMsg, "An error occurred while decrypting the RSA challenge.\n" |
| 2093 |
|
"Perhaps the key file is corrupted."); |
| 2094 |
|
UTIL_get_lang_msg("MSG_SSH_DECRYPT_RSA_ERROR", pvar); |
| 2095 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 2096 |
#else |
#else |
| 2097 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 2098 |
"An error occurred while decrypting the RSA challenge.\n" |
"An error occurred while decrypting the RSA challenge.\n" |
| 2244 |
} |
} |
| 2245 |
default: |
default: |
| 2246 |
#ifdef I18N |
#ifdef I18N |
| 2247 |
|
strcpy(pvar->ts->UIMsg, "Internal error: unsupported authentication method"); |
| 2248 |
|
UTIL_get_lang_msg("MSG_SSH_UNSUPPORT_AUTH_METHOD_ERROR", pvar); |
| 2249 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 2250 |
#else |
#else |
| 2251 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 2252 |
"Internal error: unsupported authentication method"); |
"Internal error: unsupported authentication method"); |
| 2564 |
if (deflate(&pvar->ssh_state.compress_stream, Z_NO_FLUSH) != |
if (deflate(&pvar->ssh_state.compress_stream, Z_NO_FLUSH) != |
| 2565 |
Z_OK) { |
Z_OK) { |
| 2566 |
#ifdef I18N |
#ifdef I18N |
| 2567 |
|
strcpy(pvar->ts->UIMsg, "Error compressing packet data"); |
| 2568 |
|
UTIL_get_lang_msg("MSG_SSH_COMP_ERROR2", pvar); |
| 2569 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 2570 |
#else |
#else |
| 2571 |
notify_fatal_error(pvar, "Error compressing packet data"); |
notify_fatal_error(pvar, "Error compressing packet data"); |
| 2572 |
#endif |
#endif |
| 2580 |
if (deflate(&pvar->ssh_state.compress_stream, Z_SYNC_FLUSH) != |
if (deflate(&pvar->ssh_state.compress_stream, Z_SYNC_FLUSH) != |
| 2581 |
Z_OK) { |
Z_OK) { |
| 2582 |
#ifdef I18N |
#ifdef I18N |
| 2583 |
|
strcpy(pvar->ts->UIMsg, "Error compressing packet data"); |
| 2584 |
|
UTIL_get_lang_msg("MSG_SSH_COMP_ERROR2", pvar); |
| 2585 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 2586 |
#else |
#else |
| 2587 |
notify_fatal_error(pvar, "Error compressing packet data"); |
notify_fatal_error(pvar, "Error compressing packet data"); |
| 2588 |
#endif |
#endif |
| 2658 |
if (inflate(&pvar->ssh_state.decompress_stream, Z_SYNC_FLUSH) != |
if (inflate(&pvar->ssh_state.decompress_stream, Z_SYNC_FLUSH) != |
| 2659 |
Z_OK) { |
Z_OK) { |
| 2660 |
#ifdef I18N |
#ifdef I18N |
| 2661 |
|
strcpy(pvar->ts->UIMsg, "Invalid compressed data in received packet"); |
| 2662 |
|
UTIL_get_lang_msg("MSG_SSH_INVALID_COMPDATA_ERROR", pvar); |
| 2663 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 2664 |
#else |
#else |
| 2665 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 2666 |
"Invalid compressed data in received packet"); |
"Invalid compressed data in received packet"); |
| 2866 |
|
|
| 2867 |
if (deflate(&pvar->ssh_state.compress_stream, Z_NO_FLUSH) != Z_OK) { |
if (deflate(&pvar->ssh_state.compress_stream, Z_NO_FLUSH) != Z_OK) { |
| 2868 |
#ifdef I18N |
#ifdef I18N |
| 2869 |
|
strcpy(pvar->ts->UIMsg, "Error compressing packet data"); |
| 2870 |
|
UTIL_get_lang_msg("MSG_SSH_COMP_ERROR2", pvar); |
| 2871 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 2872 |
#else |
#else |
| 2873 |
notify_fatal_error(pvar, "Error compressing packet data"); |
notify_fatal_error(pvar, "Error compressing packet data"); |
| 2874 |
#endif |
#endif |
| 2882 |
if (deflate(&pvar->ssh_state.compress_stream, Z_SYNC_FLUSH) != |
if (deflate(&pvar->ssh_state.compress_stream, Z_SYNC_FLUSH) != |
| 2883 |
Z_OK) { |
Z_OK) { |
| 2884 |
#ifdef I18N |
#ifdef I18N |
| 2885 |
|
strcpy(pvar->ts->UIMsg, "Error compressing packet data"); |
| 2886 |
|
UTIL_get_lang_msg("MSG_SSH_COMP_ERROR2", pvar); |
| 2887 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 2888 |
#else |
#else |
| 2889 |
notify_fatal_error(pvar, "Error compressing packet data"); |
notify_fatal_error(pvar, "Error compressing packet data"); |
| 2890 |
#endif |
#endif |
| 6389 |
if (pvar->ssh2_autologin == 1) { |
if (pvar->ssh2_autologin == 1) { |
| 6390 |
// SSH2自動ログインが有効の場合は、リトライは行わない。(2004.12.4 yutaka) |
// SSH2自動ログインが有効の場合は、リトライは行わない。(2004.12.4 yutaka) |
| 6391 |
#ifdef I18N |
#ifdef I18N |
| 6392 |
|
strcpy(pvar->ts->UIMsg, "SSH2 autologin error: user authentication was failure"); |
| 6393 |
|
UTIL_get_lang_msg("MSG_SSH_AUTH_FAILURE_ERROR", pvar); |
| 6394 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 6395 |
#else |
#else |
| 6396 |
notify_fatal_error(pvar, |
notify_fatal_error(pvar, |
| 6397 |
"SSH2 autologin error: user authentication was failure"); |
"SSH2 autologin error: user authentication was failure"); |
| 6682 |
cstring = buffer_get_string(&data, NULL); |
cstring = buffer_get_string(&data, NULL); |
| 6683 |
|
|
| 6684 |
#ifdef I18N |
#ifdef I18N |
| 6685 |
|
strcpy(pvar->ts->UIMsg, "SSH2_MSG_CHANNEL_OPEN_FAILURE was received.\r\nchannel [%d]: reason: %s(%d) message: %s"); |
| 6686 |
|
UTIL_get_lang_msg("MSG_SSH_CHANNEL_OPEN_ERROR", pvar); |
| 6687 |
|
notify_fatal_error(pvar, pvar->ts->UIMsg); |
| 6688 |
|
_snprintf(tmpbuf, sizeof(tmpbuf), pvar->ts->UIMsg, |
| 6689 |
|
id, rmsg, reason, cstring); |
| 6690 |
#else |
#else |
| 6691 |
_snprintf(tmpbuf, sizeof(tmpbuf), |
_snprintf(tmpbuf, sizeof(tmpbuf), |
| 6692 |
"SSH2_MSG_CHANNEL_OPEN_FAILURE was received.\r\nchannel [%d]: reason: %s(%d) message: %s", |
"SSH2_MSG_CHANNEL_OPEN_FAILURE was received.\r\nchannel [%d]: reason: %s(%d) message: %s", |
| 7220 |
|
|
| 7221 |
/* |
/* |
| 7222 |
* $Log: not supported by cvs2svn $ |
* $Log: not supported by cvs2svn $ |
| 7223 |
|
* Revision 1.66 2006/12/02 05:07:08 maya |
| 7224 |
|
* SSH2_MSG_KEXINITによる決定をttssh.logに出力するようにした。 |
| 7225 |
|
* |
| 7226 |
* Revision 1.65 2006/11/30 09:56:43 maya |
* Revision 1.65 2006/11/30 09:56:43 maya |
| 7227 |
* 表示メッセージの読み込み対応 |
* 表示メッセージの読み込み対応 |
| 7228 |
* |
* |