Mercurial > dropbear
comparison ssh.h @ 4:fe6bca95afa7
Makefile.in contains updated files required
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 01 Jun 2004 02:46:09 +0000 |
parents | |
children | c1e5d9195402 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 4:fe6bca95afa7 |
---|---|
1 /* | |
2 * Dropbear - a SSH2 server | |
3 * | |
4 * Copyright (c) 2002,2003 Matt Johnston | |
5 * All rights reserved. | |
6 * | |
7 * Permission is hereby granted, free of charge, to any person obtaining a copy | |
8 * of this software and associated documentation files (the "Software"), to deal | |
9 * in the Software without restriction, including without limitation the rights | |
10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
11 * copies of the Software, and to permit persons to whom the Software is | |
12 * furnished to do so, subject to the following conditions: | |
13 * | |
14 * The above copyright notice and this permission notice shall be included in | |
15 * all copies or substantial portions of the Software. | |
16 * | |
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
23 * SOFTWARE. */ | |
24 | |
25 /* This file contains the various numbers in the protocol */ | |
26 | |
27 | |
28 /* message numbers */ | |
29 #define SSH_MSG_DISCONNECT 1 | |
30 #define SSH_MSG_IGNORE 2 | |
31 #define SSH_MSG_UNIMPLEMENTED 3 | |
32 #define SSH_MSG_DEBUG 4 | |
33 #define SSH_MSG_SERVICE_REQUEST 5 | |
34 #define SSH_MSG_SERVICE_ACCEPT 6 | |
35 #define SSH_MSG_KEXINIT 20 | |
36 #define SSH_MSG_NEWKEYS 21 | |
37 #define SSH_MSG_KEXDH_INIT 30 | |
38 #define SSH_MSG_KEXDH_REPLY 31 | |
39 | |
40 /* userauth message numbers */ | |
41 #define SSH_MSG_USERAUTH_REQUEST 50 | |
42 #define SSH_MSG_USERAUTH_FAILURE 51 | |
43 #define SSH_MSG_USERAUTH_SUCCESS 52 | |
44 #define SSH_MSG_USERAUTH_BANNER 53 | |
45 #define SSH_MSG_USERAUTH_PK_OK 60 | |
46 | |
47 /* connect message numbers */ | |
48 #define SSH_MSG_GLOBAL_REQUEST 80 | |
49 #define SSH_MSG_REQUEST_SUCCESS 81 | |
50 #define SSH_MSG_REQUEST_FAILURE 82 | |
51 #define SSH_MSG_CHANNEL_OPEN 90 | |
52 #define SSH_MSG_CHANNEL_OPEN_CONFIRMATION 91 | |
53 #define SSH_MSG_CHANNEL_OPEN_FAILURE 92 | |
54 #define SSH_MSG_CHANNEL_WINDOW_ADJUST 93 | |
55 #define SSH_MSG_CHANNEL_DATA 94 | |
56 #define SSH_MSG_CHANNEL_EXTENDED_DATA 95 | |
57 #define SSH_MSG_CHANNEL_EOF 96 | |
58 #define SSH_MSG_CHANNEL_CLOSE 97 | |
59 #define SSH_MSG_CHANNEL_REQUEST 98 | |
60 #define SSH_MSG_CHANNEL_SUCCESS 99 | |
61 #define SSH_MSG_CHANNEL_FAILURE 100 | |
62 | |
63 /* extended data types */ | |
64 #define SSH_EXTENDED_DATA_STDERR 1 | |
65 | |
66 /* disconnect codes */ | |
67 #define SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT 1 | |
68 #define SSH_DISCONNECT_PROTOCOL_ERROR 2 | |
69 #define SSH_DISCONNECT_KEY_EXCHANGE_FAILED 3 | |
70 #define SSH_DISCONNECT_RESERVED 4 | |
71 #define SSH_DISCONNECT_MAC_ERROR 5 | |
72 #define SSH_DISCONNECT_COMPRESSION_ERROR 6 | |
73 #define SSH_DISCONNECT_SERVICE_NOT_AVAILABLE 7 | |
74 #define SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED 8 | |
75 #define SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE 9 | |
76 #define SSH_DISCONNECT_CONNECTION_LOST 10 | |
77 #define SSH_DISCONNECT_BY_APPLICATION 11 | |
78 #define SSH_DISCONNECT_TOO_MANY_CONNECTIONS 12 | |
79 #define SSH_DISCONNECT_AUTH_CANCELLED_BY_USER 13 | |
80 #define SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE 14 | |
81 #define SSH_DISCONNECT_ILLEGAL_USER_NAME 15 | |
82 | |
83 /* service types */ | |
84 #define SSH_SERVICE_USERAUTH "ssh-userauth" | |
85 #define SSH_SERVICE_USERAUTH_LEN 12 | |
86 #define SSH_SERVICE_CONNECTION "ssh-connection" | |
87 #define SSH_SERVICE_CONNECTION_LEN 14 | |
88 | |
89 /* public key types */ | |
90 #define SSH_SIGNKEY_DSS "ssh-dss" | |
91 #define SSH_SIGNKEY_DSS_LEN 7 | |
92 #define SSH_SIGNKEY_RSA "ssh-rsa" | |
93 #define SSH_SIGNKEY_RSA_LEN 7 |