]> andersk Git - openssh.git/blame - ssh1.h
- (bal) Put USE_PIPES back into sco3.2v5
[openssh.git] / ssh1.h
CommitLineData
42f11eb2 1/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 *
6 * As far as I am concerned, the code I have written for this software
7 * can be used freely for any purpose. Any derived versions of this
8 * software must be clearly marked as such, and if the derived work is
9 * incompatible with the protocol description in the RFC file, it must be
10 * called by a name other than "ssh" or "Secure Shell".
11 */
12
13/*
14 * Definition of message types. New values can be added, but old values
15 * should not be removed or without careful consideration of the consequences
16 * for compatibility. The maximum value is 254; value 255 is reserved for
17 * future extension.
18 */
19/* Message name */ /* msg code */ /* arguments */
20#define SSH_MSG_NONE 0 /* no message */
21#define SSH_MSG_DISCONNECT 1 /* cause (string) */
22#define SSH_SMSG_PUBLIC_KEY 2 /* ck,msk,srvk,hostk */
23#define SSH_CMSG_SESSION_KEY 3 /* key (BIGNUM) */
24#define SSH_CMSG_USER 4 /* user (string) */
25#define SSH_CMSG_AUTH_RHOSTS 5 /* user (string) */
26#define SSH_CMSG_AUTH_RSA 6 /* modulus (BIGNUM) */
27#define SSH_SMSG_AUTH_RSA_CHALLENGE 7 /* int (BIGNUM) */
28#define SSH_CMSG_AUTH_RSA_RESPONSE 8 /* int (BIGNUM) */
29#define SSH_CMSG_AUTH_PASSWORD 9 /* pass (string) */
30#define SSH_CMSG_REQUEST_PTY 10 /* TERM, tty modes */
31#define SSH_CMSG_WINDOW_SIZE 11 /* row,col,xpix,ypix */
32#define SSH_CMSG_EXEC_SHELL 12 /* */
33#define SSH_CMSG_EXEC_CMD 13 /* cmd (string) */
34#define SSH_SMSG_SUCCESS 14 /* */
35#define SSH_SMSG_FAILURE 15 /* */
36#define SSH_CMSG_STDIN_DATA 16 /* data (string) */
37#define SSH_SMSG_STDOUT_DATA 17 /* data (string) */
38#define SSH_SMSG_STDERR_DATA 18 /* data (string) */
39#define SSH_CMSG_EOF 19 /* */
40#define SSH_SMSG_EXITSTATUS 20 /* status (int) */
41#define SSH_MSG_CHANNEL_OPEN_CONFIRMATION 21 /* channel (int) */
42#define SSH_MSG_CHANNEL_OPEN_FAILURE 22 /* channel (int) */
43#define SSH_MSG_CHANNEL_DATA 23 /* ch,data (int,str) */
44#define SSH_MSG_CHANNEL_CLOSE 24 /* channel (int) */
45#define SSH_MSG_CHANNEL_CLOSE_CONFIRMATION 25 /* channel (int) */
46/* SSH_CMSG_X11_REQUEST_FORWARDING 26 OBSOLETE */
47#define SSH_SMSG_X11_OPEN 27 /* channel (int) */
48#define SSH_CMSG_PORT_FORWARD_REQUEST 28 /* p,host,hp (i,s,i) */
49#define SSH_MSG_PORT_OPEN 29 /* ch,h,p (i,s,i) */
50#define SSH_CMSG_AGENT_REQUEST_FORWARDING 30 /* */
51#define SSH_SMSG_AGENT_OPEN 31 /* port (int) */
52#define SSH_MSG_IGNORE 32 /* string */
53#define SSH_CMSG_EXIT_CONFIRMATION 33 /* */
54#define SSH_CMSG_X11_REQUEST_FORWARDING 34 /* proto,data (s,s) */
55#define SSH_CMSG_AUTH_RHOSTS_RSA 35 /* user,mod (s,mpi) */
56#define SSH_MSG_DEBUG 36 /* string */
57#define SSH_CMSG_REQUEST_COMPRESSION 37 /* level 1-9 (int) */
58#define SSH_CMSG_MAX_PACKET_SIZE 38 /* size 4k-1024k (int) */
59#define SSH_CMSG_AUTH_TIS 39 /* we use this for s/key */
60#define SSH_SMSG_AUTH_TIS_CHALLENGE 40 /* challenge (string) */
61#define SSH_CMSG_AUTH_TIS_RESPONSE 41 /* response (string) */
62#define SSH_CMSG_AUTH_KERBEROS 42 /* (KTEXT) */
63#define SSH_SMSG_AUTH_KERBEROS_RESPONSE 43 /* (KTEXT) */
64#define SSH_CMSG_HAVE_KERBEROS_TGT 44 /* credentials (s) */
65#define SSH_CMSG_HAVE_AFS_TOKEN 65 /* token (s) */
66
67/*
68 * Authentication methods. New types can be added, but old types should not
69 * be removed for compatibility. The maximum allowed value is 31.
70 */
71#define SSH_AUTH_RHOSTS 1
72#define SSH_AUTH_RSA 2
73#define SSH_AUTH_PASSWORD 3
74#define SSH_AUTH_RHOSTS_RSA 4
75#define SSH_AUTH_TIS 5
76#define SSH_AUTH_KERBEROS 6
77#define SSH_PASS_KERBEROS_TGT 7
78 /* 8 to 15 are reserved */
79#define SSH_PASS_AFS_TOKEN 21
80
81/* Protocol flags. These are bit masks. */
82#define SSH_PROTOFLAG_SCREEN_NUMBER 1 /* X11 forwarding includes screen */
83#define SSH_PROTOFLAG_HOST_IN_FWD_OPEN 2 /* forwarding opens contain host */
84
This page took 0.055782 seconds and 5 git commands to generate.