]> andersk Git - openssh.git/blobdiff - ssh1.h
- djm@cvs.openbsd.org 2010/01/30 02:54:53
[openssh.git] / ssh1.h
diff --git a/ssh1.h b/ssh1.h
index a7782cebb3c943c7a078a0e081396405800b98bf..353d930415f7ed93c77957ee8c297a33c54e1f4d 100644 (file)
--- a/ssh1.h
+++ b/ssh1.h
@@ -1,3 +1,5 @@
+/* $OpenBSD: ssh1.h,v 1.6 2006/03/25 22:22:43 djm Exp $ */
+
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -16,6 +18,9 @@
  * for compatibility.  The maximum value is 254; value 255 is reserved for
  * future extension.
  */
+/* Ranges */
+#define SSH_MSG_MIN                            1
+#define SSH_MSG_MAX                            254
 /* Message name */                     /* msg code */  /* arguments */
 #define SSH_MSG_NONE                           0       /* no message */
 #define SSH_MSG_DISCONNECT                     1       /* cause (string) */
@@ -27,8 +32,8 @@
 #define SSH_SMSG_AUTH_RSA_CHALLENGE            7       /* int (BIGNUM) */
 #define SSH_CMSG_AUTH_RSA_RESPONSE             8       /* int (BIGNUM) */
 #define SSH_CMSG_AUTH_PASSWORD                 9       /* pass (string) */
-#define SSH_CMSG_REQUEST_PTY                   10      /* TERM, tty modes */
-#define SSH_CMSG_WINDOW_SIZE                   11      /* row,col,xpix,ypix */
+#define SSH_CMSG_REQUEST_PTY                   10      /* TERM, tty modes */
+#define SSH_CMSG_WINDOW_SIZE                   11      /* row,col,xpix,ypix */
 #define SSH_CMSG_EXEC_SHELL                    12      /* */
 #define SSH_CMSG_EXEC_CMD                      13      /* cmd (string) */
 #define SSH_SMSG_SUCCESS                       14      /* */
@@ -43,7 +48,7 @@
 #define SSH_MSG_CHANNEL_DATA                   23      /* ch,data (int,str) */
 #define SSH_MSG_CHANNEL_CLOSE                  24      /* channel (int) */
 #define SSH_MSG_CHANNEL_CLOSE_CONFIRMATION     25      /* channel (int) */
-/*      SSH_CMSG_X11_REQUEST_FORWARDING         26         OBSOLETE */
+/*      SSH_CMSG_X11_REQUEST_FORWARDING                26         OBSOLETE */
 #define SSH_SMSG_X11_OPEN                      27      /* channel (int) */
 #define SSH_CMSG_PORT_FORWARD_REQUEST          28      /* p,host,hp (i,s,i) */
 #define SSH_MSG_PORT_OPEN                      29      /* ch,h,p (i,s,i) */
 #define SSH_CMSG_HAVE_KERBEROS_TGT             44      /* credentials (s) */
 #define SSH_CMSG_HAVE_AFS_TOKEN                        65      /* token (s) */
 
+/* protocol version 1.5 overloads some version 1.3 message types */
+#define SSH_MSG_CHANNEL_INPUT_EOF      SSH_MSG_CHANNEL_CLOSE
+#define SSH_MSG_CHANNEL_OUTPUT_CLOSE   SSH_MSG_CHANNEL_CLOSE_CONFIRMATION
+
 /*
  * Authentication methods.  New types can be added, but old types should not
  * be removed for compatibility.  The maximum allowed value is 31.
@@ -81,4 +90,3 @@
 /* Protocol flags.  These are bit masks. */
 #define SSH_PROTOFLAG_SCREEN_NUMBER    1       /* X11 forwarding includes screen */
 #define SSH_PROTOFLAG_HOST_IN_FWD_OPEN 2       /* forwarding opens contain host */
-
This page took 0.138202 seconds and 4 git commands to generate.