Changeset View
Changeset View
Standalone View
Standalone View
crypto/openssh/packet.c
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
#include "log.h" | #include "log.h" | ||||
#include "canohost.h" | #include "canohost.h" | ||||
#include "misc.h" | #include "misc.h" | ||||
#include "channels.h" | #include "channels.h" | ||||
#include "ssh.h" | #include "ssh.h" | ||||
#include "packet.h" | #include "packet.h" | ||||
#include "ssherr.h" | #include "ssherr.h" | ||||
#include "sshbuf.h" | #include "sshbuf.h" | ||||
#include "blacklist_client.h" | |||||
#ifdef PACKET_DEBUG | #ifdef PACKET_DEBUG | ||||
#define DBG(x) x | #define DBG(x) x | ||||
#else | #else | ||||
#define DBG(x) | #define DBG(x) | ||||
#endif | #endif | ||||
#define PACKET_MAX_SIZE (256 * 1024) | #define PACKET_MAX_SIZE (256 * 1024) | ||||
▲ Show 20 Lines • Show All 1,969 Lines • ▼ Show 20 Lines | case SSH_ERR_SYSTEM_ERROR: | ||||
} | } | ||||
/* FALLTHROUGH */ | /* FALLTHROUGH */ | ||||
case SSH_ERR_NO_CIPHER_ALG_MATCH: | case SSH_ERR_NO_CIPHER_ALG_MATCH: | ||||
case SSH_ERR_NO_MAC_ALG_MATCH: | case SSH_ERR_NO_MAC_ALG_MATCH: | ||||
case SSH_ERR_NO_COMPRESS_ALG_MATCH: | case SSH_ERR_NO_COMPRESS_ALG_MATCH: | ||||
case SSH_ERR_NO_KEX_ALG_MATCH: | case SSH_ERR_NO_KEX_ALG_MATCH: | ||||
case SSH_ERR_NO_HOSTKEY_ALG_MATCH: | case SSH_ERR_NO_HOSTKEY_ALG_MATCH: | ||||
if (ssh && ssh->kex && ssh->kex->failed_choice) { | if (ssh && ssh->kex && ssh->kex->failed_choice) { | ||||
BLACKLIST_NOTIFY(BLACKLIST_AUTH_FAIL); | |||||
fatal("Unable to negotiate with %.200s port %d: %s. " | fatal("Unable to negotiate with %.200s port %d: %s. " | ||||
"Their offer: %s", ssh_remote_ipaddr(ssh), | "Their offer: %s", ssh_remote_ipaddr(ssh), | ||||
ssh_remote_port(ssh), ssh_err(r), | ssh_remote_port(ssh), ssh_err(r), | ||||
ssh->kex->failed_choice); | ssh->kex->failed_choice); | ||||
} | } | ||||
/* FALLTHROUGH */ | /* FALLTHROUGH */ | ||||
default: | default: | ||||
fatal("%s%sConnection %s %.200s port %d: %s", | fatal("%s%sConnection %s %.200s port %d: %s", | ||||
▲ Show 20 Lines • Show All 894 Lines • Show Last 20 Lines |