Changeset View
Changeset View
Standalone View
Standalone View
crypto/openssh/packet.c
| Show First 20 Lines • Show All 90 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,909 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->kex && ssh->kex->failed_choice) { | if (ssh->kex && ssh->kex->failed_choice) { | ||||
| BLACKLIST_NOTIFY(ssh, BLACKLIST_AUTH_FAIL, "ssh"); | |||||
| ssh_packet_clear_keys(ssh); | ssh_packet_clear_keys(ssh); | ||||
| errno = oerrno; | errno = oerrno; | ||||
| logdie("Unable to negotiate with %s: %s. " | logdie("Unable to negotiate with %s: %s. " | ||||
| "Their offer: %s", remote_id, ssh_err(r), | "Their offer: %s", remote_id, ssh_err(r), | ||||
| ssh->kex->failed_choice); | ssh->kex->failed_choice); | ||||
| } | } | ||||
| /* FALLTHROUGH */ | /* FALLTHROUGH */ | ||||
| default: | default: | ||||
| ▲ Show 20 Lines • Show All 838 Lines • Show Last 20 Lines | |||||