00001 #ifndef __SSH2_H 00002 #define __SSH2_H 00003 00004 #define SSH2_MSG_DISCONNECT 1 00005 #define SSH2_MSG_IGNORE 2 00006 #define SSH2_MSG_UNIMPLEMENTED 3 00007 #define SSH2_MSG_DEBUG 4 00008 #define SSH2_MSG_SERVICE_REQUEST 5 00009 #define SSH2_MSG_SERVICE_ACCEPT 6 00010 00011 #define SSH2_MSG_KEXINIT 20 00012 #define SSH2_MSG_NEWKEYS 21 00013 00014 #define SSH2_MSG_KEXDH_INIT 30 00015 #define SSH2_MSG_KEXDH_REPLY 31 00016 #define SSH2_MSG_KEX_ECDH_INIT 30 00017 #define SSH2_MSG_KEX_ECDH_REPLY 31 00018 #define SSH2_MSG_ECMQV_INIT 30 00019 #define SSH2_MSG_ECMQV_REPLY 31 00020 00021 #define SSH2_MSG_KEX_DH_GEX_REQUEST_OLD 30 00022 #define SSH2_MSG_KEX_DH_GEX_GROUP 31 00023 #define SSH2_MSG_KEX_DH_GEX_INIT 32 00024 #define SSH2_MSG_KEX_DH_GEX_REPLY 33 00025 #define SSH2_MSG_KEX_DH_GEX_REQUEST 34 00026 #define SSH2_MSG_USERAUTH_REQUEST 50 00027 #define SSH2_MSG_USERAUTH_FAILURE 51 00028 #define SSH2_MSG_USERAUTH_SUCCESS 52 00029 #define SSH2_MSG_USERAUTH_BANNER 53 00030 #define SSH2_MSG_USERAUTH_PK_OK 60 00031 #define SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ 60 00032 #define SSH2_MSG_USERAUTH_INFO_REQUEST 60 00033 #define SSH2_MSG_USERAUTH_GSSAPI_RESPONSE 60 00034 #define SSH2_MSG_USERAUTH_INFO_RESPONSE 61 00035 #define SSH2_MSG_USERAUTH_GSSAPI_TOKEN 61 00036 #define SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE 63 00037 #define SSH2_MSG_USERAUTH_GSSAPI_ERROR 64 00038 #define SSH2_MSG_USERAUTH_GSSAPI_ERRTOK 65 00039 #define SSH2_MSG_USERAUTH_GSSAPI_MIC 66 00040 00041 #define SSH2_MSG_GLOBAL_REQUEST 80 00042 #define SSH2_MSG_REQUEST_SUCCESS 81 00043 #define SSH2_MSG_REQUEST_FAILURE 82 00044 #define SSH2_MSG_CHANNEL_OPEN 90 00045 #define SSH2_MSG_CHANNEL_OPEN_CONFIRMATION 91 00046 #define SSH2_MSG_CHANNEL_OPEN_FAILURE 92 00047 #define SSH2_MSG_CHANNEL_WINDOW_ADJUST 93 00048 #define SSH2_MSG_CHANNEL_DATA 94 00049 #define SSH2_MSG_CHANNEL_EXTENDED_DATA 95 00050 #define SSH2_MSG_CHANNEL_EOF 96 00051 #define SSH2_MSG_CHANNEL_CLOSE 97 00052 #define SSH2_MSG_CHANNEL_REQUEST 98 00053 #define SSH2_MSG_CHANNEL_SUCCESS 99 00054 #define SSH2_MSG_CHANNEL_FAILURE 100 00055 00056 #define SSH2_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT 1 00057 #define SSH2_DISCONNECT_PROTOCOL_ERROR 2 00058 #define SSH2_DISCONNECT_KEY_EXCHANGE_FAILED 3 00059 #define SSH2_DISCONNECT_HOST_AUTHENTICATION_FAILED 4 00060 #define SSH2_DISCONNECT_RESERVED 4 00061 #define SSH2_DISCONNECT_MAC_ERROR 5 00062 #define SSH2_DISCONNECT_COMPRESSION_ERROR 6 00063 #define SSH2_DISCONNECT_SERVICE_NOT_AVAILABLE 7 00064 #define SSH2_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED 8 00065 #define SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE 9 00066 #define SSH2_DISCONNECT_CONNECTION_LOST 10 00067 #define SSH2_DISCONNECT_BY_APPLICATION 11 00068 #define SSH2_DISCONNECT_TOO_MANY_CONNECTIONS 12 00069 #define SSH2_DISCONNECT_AUTH_CANCELLED_BY_USER 13 00070 #define SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE 14 00071 #define SSH2_DISCONNECT_ILLEGAL_USER_NAME 15 00072 00073 #define SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED 1 00074 #define SSH2_OPEN_CONNECT_FAILED 2 00075 #define SSH2_OPEN_UNKNOWN_CHANNEL_TYPE 3 00076 #define SSH2_OPEN_RESOURCE_SHORTAGE 4 00077 00078 #define SSH2_EXTENDED_DATA_STDERR 1 00079 00080 #endif