clientloop.h revision 146998
197403Sobrien/*	$OpenBSD: clientloop.h,v 1.12 2004/11/07 00:01:46 djm Exp $	*/
297403Sobrien
397403Sobrien/*
497403Sobrien * Author: Tatu Ylonen <ylo@cs.hut.fi>
597403Sobrien * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
697403Sobrien *                    All rights reserved
797403Sobrien *
897403Sobrien * As far as I am concerned, the code I have written for this software
997403Sobrien * can be used freely for any purpose.  Any derived versions of this
1097403Sobrien * software must be clearly marked as such, and if the derived work is
1197403Sobrien * incompatible with the protocol description in the RFC file, it must be
1297403Sobrien * called by a name other than "ssh" or "Secure Shell".
1397403Sobrien */
1497403Sobrien/*
1597403Sobrien * Copyright (c) 2001 Markus Friedl.  All rights reserved.
1697403Sobrien *
1797403Sobrien * Redistribution and use in source and binary forms, with or without
1897403Sobrien * modification, are permitted provided that the following conditions
1997403Sobrien * are met:
2097403Sobrien * 1. Redistributions of source code must retain the above copyright
2197403Sobrien *    notice, this list of conditions and the following disclaimer.
2297403Sobrien * 2. Redistributions in binary form must reproduce the above copyright
2397403Sobrien *    notice, this list of conditions and the following disclaimer in the
2497403Sobrien *    documentation and/or other materials provided with the distribution.
2597403Sobrien *
2697403Sobrien * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2797403Sobrien * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2897403Sobrien * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2997403Sobrien * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
3097403Sobrien * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
3197403Sobrien * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3297403Sobrien * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3397403Sobrien * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3497403Sobrien * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3597403Sobrien * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3697403Sobrien */
3797403Sobrien
3897403Sobrien/* Client side main loop for the interactive session. */
3997403Sobrienint	 client_loop(int, int, int);
4097403Sobrienvoid	 client_global_request_reply_fwd(int, u_int32_t, void *);
4197403Sobrienvoid	 client_session2_setup(int, int, int, const char *, struct termios *,
42	    int, Buffer *, char **, dispatch_fn *);
43
44/* Multiplexing control protocol flags */
45#define SSHMUX_COMMAND_OPEN		1	/* Open new connection */
46#define SSHMUX_COMMAND_ALIVE_CHECK	2	/* Check master is alive */
47#define SSHMUX_COMMAND_TERMINATE	3	/* Ask master to exit */
48
49#define SSHMUX_FLAG_TTY			(1)	/* Request tty on open */
50#define SSHMUX_FLAG_SUBSYS		(1<<1)	/* Subsystem request on open */
51