assh/assh_packet.h header reference
Description [link]
This header provides functions used to build and parse the packet format used the ssh2 protocol.
See also assh/assh_buffer.h.
Members [link]
Types [link]
- enum assh_ssh_disconnect_e
- enum assh_ssh_msg_e
Function [link]
- void assh_packet_collect(struct assh_context_s *c)
Members detail [link]
void assh_packet_collect(struct assh_context_s *c) [link]
This function is declared in assh/assh_packet.h source file, line 242.
This function forces garbage collect of packets. This does nothing when CONFIG_ASSH_PACKET_POOL is not defined.
enum assh_ssh_disconnect_e [link]
This enum is declared in assh/assh_packet.h source file, line 199.
This enum specifies standard ssh2 disconnect reasons.
Identifier | Description |
---|---|
SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT | |
SSH_DISCONNECT_PROTOCOL_ERROR | |
SSH_DISCONNECT_KEY_EXCHANGE_FAILED | |
SSH_DISCONNECT_RESERVED | |
SSH_DISCONNECT_MAC_ERROR | |
SSH_DISCONNECT_COMPRESSION_ERROR | |
SSH_DISCONNECT_SERVICE_NOT_AVAILABLE | |
SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED | |
SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE | |
SSH_DISCONNECT_CONNECTION_LOST | |
SSH_DISCONNECT_BY_APPLICATION | |
SSH_DISCONNECT_TOO_MANY_CONNECTIONS | |
SSH_DISCONNECT_AUTH_CANCELLED_BY_USER | |
SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE | |
SSH_DISCONNECT_ILLEGAL_USER_NAME | |
SSH_DISCONNECT_PRIVATE |
enum assh_ssh_msg_e [link]
This enum is declared in assh/assh_packet.h source file, line 139.
This enum specifies the standard values for ssh2 message ids.
Identifier | Value | Description |
---|---|---|
SSH_MSG_INVALID | 0 | |
SSH_MSG_DISCONNECT | 1 | Transport layer related message |
SSH_MSG_IGNORE | 2 | Transport layer related message |
SSH_MSG_UNIMPLEMENTED | 3 | Transport layer related message |
SSH_MSG_DEBUG | 4 | Transport layer related message |
SSH_MSG_SERVICE_REQUEST | 5 | Transport layer related message |
SSH_MSG_SERVICE_ACCEPT | 6 | Transport layer related message |
SSH_MSG_KEXINIT | 20 | Generic key-exchange message |
SSH_MSG_NEWKEYS | 21 | Generic key-exchange message |
SSH_MSG_KEX_DH_REQUEST | 30 | Method specific key-exchange message |
SSH_MSG_KEX_DH_REPLY | 31 | Method specific key-exchange message |
SSH_MSG_KEX_ECDH_INIT | 30 | Method specific key-exchange message |
SSH_MSG_KEX_ECDH_REPLY | 31 | Method specific key-exchange message |
SSH_MSG_KEX_DH_GEX_REQUEST_OLD | 30 | Method specific key-exchange message |
SSH_MSG_KEX_DH_GEX_GROUP | 31 | Method specific key-exchange message |
SSH_MSG_KEX_DH_GEX_INIT | 32 | Method specific key-exchange message |
SSH_MSG_KEX_DH_GEX_REPLY | 33 | Method specific key-exchange message |
SSH_MSG_KEX_DH_GEX_REQUEST | 34 | Method specific key-exchange message |
SSH_MSG_KEXRSA_PUBKEY | 30 | Method specific key-exchange message |
SSH_MSG_KEXRSA_SECRET | 31 | Method specific key-exchange message |
SSH_MSG_KEXRSA_DONE | 32 | Method specific key-exchange message |
SSH_MSG_USERAUTH_REQUEST | 50 | User authentication related message |
SSH_MSG_USERAUTH_FAILURE | 51 | User authentication related message |
SSH_MSG_USERAUTH_SUCCESS | 52 | User authentication related message |
SSH_MSG_USERAUTH_BANNER | 53 | User authentication related message |
SSH_MSG_USERAUTH_PK_OK | 60 | User authentication related message |
SSH_MSG_USERAUTH_PASSWD_CHANGEREQ | 60 | User authentication related message |
SSH_MSG_USERAUTH_INFO_REQUEST | 60 | User authentication related message |
SSH_MSG_USERAUTH_INFO_RESPONSE | 61 | User authentication related message |
SSH_MSG_GLOBAL_REQUEST | 80 | Connection protocol related message |
SSH_MSG_REQUEST_SUCCESS | 81 | Connection protocol related message |
SSH_MSG_REQUEST_FAILURE | 82 | Connection protocol related message |
SSH_MSG_CHANNEL_OPEN | 90 | Connection protocol related message |
SSH_MSG_CHANNEL_OPEN_CONFIRMATION | 91 | Connection protocol related message |
SSH_MSG_CHANNEL_OPEN_FAILURE | 92 | Connection protocol related message |
SSH_MSG_CHANNEL_WINDOW_ADJUST | 93 | Connection protocol related message |
SSH_MSG_CHANNEL_DATA | 94 | Connection protocol related message |
SSH_MSG_CHANNEL_EXTENDED_DATA | 95 | Connection protocol related message |
SSH_MSG_CHANNEL_EOF | 96 | Connection protocol related message |
SSH_MSG_CHANNEL_CLOSE | 97 | Connection protocol related message |
SSH_MSG_CHANNEL_REQUEST | 98 | Connection protocol related message |
SSH_MSG_CHANNEL_SUCCESS | 99 | Connection protocol related message |
SSH_MSG_CHANNEL_FAILURE | 100 | Connection protocol related message |