[NOTE: File split is was not done in Portabl Tree]
   - markus@cvs.openbsd.org 2001/05/30 12:55:13
     [auth-options.c auth2.c channels.c channels.h clientloop.c nchan.c
      packet.c serverloop.c session.c ssh.c ssh1.h]
     channel layer cleanup: merge header files and split .c files
diff --git a/ChangeLog b/ChangeLog
index 8f4687e..1fedb7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,14 @@
+20010609
+ - OpenBSD CVS Sync
+   - markus@cvs.openbsd.org 2001/05/30 12:55:13
+     [auth-options.c auth2.c channels.c channels.h clientloop.c nchan.c 
+      packet.c serverloop.c session.c ssh.c ssh1.h]
+     channel layer cleanup: merge header files and split .c files
+
 20010606
- - OpenBSD CVS Sync                                                             
-   - markus@cvs.openbsd.org 2001/05/17 21:34:15                                 
-     [ssh.1]                                                                    
+ - OpenBSD CVS Sync
+   - markus@cvs.openbsd.org 2001/05/17 21:34:15 
+     [ssh.1]
      no spaces in PreferredAuthentications; 
      meixner@rbg.informatik.tu-darmstadt.de
    - markus@cvs.openbsd.org 2001/05/18 14:13:29
@@ -42,7 +49,7 @@
    - stevesk@cvs.openbsd.org 2001/05/19 19:57:09
      [channels.c]                               
      typo in error message                      
-   - markus@cvs.openbsd.org 2001/05/20 17:20:36                                 
+   - markus@cvs.openbsd.org 2001/05/20 17:20:36
      [auth-rsa.c auth.c auth.h auth2.c servconf.c servconf.h sshd.8
       sshd_config]
      configurable authorized_keys{,2} location; originally from peter@; 
@@ -5508,4 +5515,4 @@
  - Wrote replacements for strlcpy and mkdtemp
  - Released 1.0pre1
 
-$Id: ChangeLog,v 1.1246 2001/06/05 21:13:57 mouring Exp $
+$Id: ChangeLog,v 1.1247 2001/06/09 00:17:10 mouring Exp $
diff --git a/auth-options.c b/auth-options.c
index 443f541..d6258ab 100644
--- a/auth-options.c
+++ b/auth-options.c
@@ -10,14 +10,14 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: auth-options.c,v 1.16 2001/03/18 12:07:52 markus Exp $");
+RCSID("$OpenBSD: auth-options.c,v 1.17 2001/05/30 12:55:06 markus Exp $");
 
 #include "packet.h"
 #include "xmalloc.h"
 #include "match.h"
 #include "log.h"
 #include "canohost.h"
-#include "channels.h"
+#include "channel.h"
 #include "auth-options.h"
 #include "servconf.h"
 
diff --git a/auth2.c b/auth2.c
index 9988f7a..8c55ff0 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: auth2.c,v 1.58 2001/05/20 17:20:35 markus Exp $");
+RCSID("$OpenBSD: auth2.c,v 1.59 2001/05/30 12:55:06 markus Exp $");
 
 #include <openssl/evp.h>
 
@@ -36,7 +36,7 @@
 #include "log.h"
 #include "servconf.h"
 #include "compat.h"
-#include "channels.h"
+#include "channel.h"
 #include "bufaux.h"
 #include "auth.h"
 #include "session.h"
diff --git a/clientloop.c b/clientloop.c
index 7492683..59a556a 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -59,7 +59,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: clientloop.c,v 1.72 2001/05/24 18:57:53 stevesk Exp $");
+RCSID("$OpenBSD: clientloop.c,v 1.73 2001/05/30 12:55:10 markus Exp $");
 
 #include "ssh.h"
 #include "ssh1.h"
@@ -68,7 +68,7 @@
 #include "packet.h"
 #include "buffer.h"
 #include "compat.h"
-#include "channels.h"
+#include "channel.h"
 #include "dispatch.h"
 #include "buffer.h"
 #include "bufaux.h"
diff --git a/packet.c b/packet.c
index bf8fa54..e3e6887 100644
--- a/packet.c
+++ b/packet.c
@@ -37,7 +37,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: packet.c,v 1.62 2001/05/28 23:58:35 markus Exp $");
+RCSID("$OpenBSD: packet.c,v 1.63 2001/05/30 12:55:11 markus Exp $");
 
 #include "xmalloc.h"
 #include "buffer.h"
@@ -48,7 +48,7 @@
 
 #include "compress.h"
 #include "deattack.h"
-#include "channels.h"
+#include "channel.h"
 
 #include "compat.h"
 #include "ssh1.h"
@@ -245,7 +245,6 @@
 packet_set_protocol_flags(u_int protocol_flags)
 {
 	remote_protocol_flags = protocol_flags;
-	channel_set_options((protocol_flags & SSH_PROTOFLAG_HOST_IN_FWD_OPEN) != 0);
 }
 
 /* Returns the remote protocol flags set earlier by the above function. */
diff --git a/serverloop.c b/serverloop.c
index 6a5f40c..5f50b4e 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -35,7 +35,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: serverloop.c,v 1.65 2001/05/08 19:17:31 markus Exp $");
+RCSID("$OpenBSD: serverloop.c,v 1.66 2001/05/30 12:55:12 markus Exp $");
 
 #include "xmalloc.h"
 #include "packet.h"
@@ -43,7 +43,7 @@
 #include "log.h"
 #include "servconf.h"
 #include "sshpty.h"
-#include "channels.h"
+#include "channel.h"
 #include "compat.h"
 #include "ssh1.h"
 #include "ssh2.h"
diff --git a/session.c b/session.c
index 9aef6b0..8a8b4c1 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.76 2001/05/19 00:36:40 djm Exp $");
+RCSID("$OpenBSD: session.c,v 1.77 2001/05/30 12:55:13 markus Exp $");
 
 #include "ssh.h"
 #include "ssh1.h"
@@ -45,8 +45,7 @@
 #include "mpaux.h"
 #include "uidswap.h"
 #include "compat.h"
-#include "channels.h"
-#include "nchan.h"
+#include "channel.h"
 #include "bufaux.h"
 #include "auth.h"
 #include "auth-options.h"
diff --git a/ssh.c b/ssh.c
index 01ae042..84c85d2 100644
--- a/ssh.c
+++ b/ssh.c
@@ -39,7 +39,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: ssh.c,v 1.120 2001/05/28 08:04:39 markus Exp $");
+RCSID("$OpenBSD: ssh.c,v 1.121 2001/05/30 12:55:13 markus Exp $");
 
 #include <openssl/evp.h>
 #include <openssl/err.h>
@@ -53,7 +53,7 @@
 #include "packet.h"
 #include "buffer.h"
 #include "uidswap.h"
-#include "channels.h"
+#include "channel.h"
 #include "key.h"
 #include "authfd.h"
 #include "authfile.h"
diff --git a/ssh1.h b/ssh1.h
index 770c5e4..98d1dc9 100644
--- a/ssh1.h
+++ b/ssh1.h
@@ -1,4 +1,4 @@
-/*	$OpenBSD: ssh1.h,v 1.2 2001/01/29 01:58:18 niklas Exp $	*/
+/*	$OpenBSD: ssh1.h,v 1.3 2001/05/30 12:55:13 markus Exp $	*/
 
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -66,6 +66,10 @@
 #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.
@@ -83,4 +87,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 */
-