libssh: ssh2.h Source File

libssh 0.10.3 The SSH library

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