4 #define SSH2_MSG_DISCONNECT 1     5 #define SSH2_MSG_IGNORE  2     6 #define SSH2_MSG_UNIMPLEMENTED 3     7 #define SSH2_MSG_DEBUG  4     8 #define SSH2_MSG_SERVICE_REQUEST  5     9 #define SSH2_MSG_SERVICE_ACCEPT 6    11 #define SSH2_MSG_KEXINIT   20    12 #define SSH2_MSG_NEWKEYS 21    14 #define SSH2_MSG_KEXDH_INIT 30    15 #define SSH2_MSG_KEXDH_REPLY 31    16 #define SSH2_MSG_KEX_ECDH_INIT 30    17 #define SSH2_MSG_KEX_ECDH_REPLY 31    18 #define SSH2_MSG_ECMQV_INIT 30    19 #define SSH2_MSG_ECMQV_REPLY 31    21 #define SSH2_MSG_KEX_DH_GEX_REQUEST_OLD 30    22 #define SSH2_MSG_KEX_DH_GEX_GROUP 31    23 #define SSH2_MSG_KEX_DH_GEX_INIT 32    24 #define SSH2_MSG_KEX_DH_GEX_REPLY 33    25 #define SSH2_MSG_KEX_DH_GEX_REQUEST 34    26 #define SSH2_MSG_USERAUTH_REQUEST 50    27 #define SSH2_MSG_USERAUTH_FAILURE 51    28 #define SSH2_MSG_USERAUTH_SUCCESS 52    29 #define SSH2_MSG_USERAUTH_BANNER 53    30 #define SSH2_MSG_USERAUTH_PK_OK 60    31 #define SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ 60    32 #define SSH2_MSG_USERAUTH_INFO_REQUEST   60    33 #define SSH2_MSG_USERAUTH_GSSAPI_RESPONSE 60    34 #define SSH2_MSG_USERAUTH_INFO_RESPONSE 61    35 #define SSH2_MSG_USERAUTH_GSSAPI_TOKEN 61    36 #define SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE 63    37 #define SSH2_MSG_USERAUTH_GSSAPI_ERROR 64    38 #define SSH2_MSG_USERAUTH_GSSAPI_ERRTOK 65    39 #define SSH2_MSG_USERAUTH_GSSAPI_MIC 66    41 #define SSH2_MSG_GLOBAL_REQUEST 80    42 #define SSH2_MSG_REQUEST_SUCCESS 81    43 #define SSH2_MSG_REQUEST_FAILURE 82    44 #define SSH2_MSG_CHANNEL_OPEN 90    45 #define SSH2_MSG_CHANNEL_OPEN_CONFIRMATION 91    46 #define SSH2_MSG_CHANNEL_OPEN_FAILURE 92    47 #define SSH2_MSG_CHANNEL_WINDOW_ADJUST 93    48 #define SSH2_MSG_CHANNEL_DATA 94    49 #define SSH2_MSG_CHANNEL_EXTENDED_DATA 95    50 #define SSH2_MSG_CHANNEL_EOF  96    51 #define SSH2_MSG_CHANNEL_CLOSE 97    52 #define SSH2_MSG_CHANNEL_REQUEST 98    53 #define SSH2_MSG_CHANNEL_SUCCESS 99    54 #define SSH2_MSG_CHANNEL_FAILURE 100    56 #define SSH2_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT 1    57 #define SSH2_DISCONNECT_PROTOCOL_ERROR 2    58 #define SSH2_DISCONNECT_KEY_EXCHANGE_FAILED 3    59 #define SSH2_DISCONNECT_HOST_AUTHENTICATION_FAILED 4    60 #define SSH2_DISCONNECT_RESERVED   4    61 #define SSH2_DISCONNECT_MAC_ERROR 5    62 #define SSH2_DISCONNECT_COMPRESSION_ERROR 6    63 #define SSH2_DISCONNECT_SERVICE_NOT_AVAILABLE 7    64 #define SSH2_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED 8    65 #define SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE 9    66 #define SSH2_DISCONNECT_CONNECTION_LOST 10    67 #define SSH2_DISCONNECT_BY_APPLICATION 11    68 #define SSH2_DISCONNECT_TOO_MANY_CONNECTIONS 12    69 #define SSH2_DISCONNECT_AUTH_CANCELLED_BY_USER 13    70 #define SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE 14    71 #define SSH2_DISCONNECT_ILLEGAL_USER_NAME 15    73 #define SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED   1    74 #define SSH2_OPEN_CONNECT_FAILED      2    75 #define SSH2_OPEN_UNKNOWN_CHANNEL_TYPE      3    76 #define SSH2_OPEN_RESOURCE_SHORTAGE     4    78 #define SSH2_EXTENDED_DATA_STDERR     1