xref: /onnv-gate/usr/src/cmd/ssh/include/clientloop.h (revision 7574:e19e13b485fa)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * Author: Tatu Ylonen <ylo@cs.hut.fi>
30Sstevel@tonic-gate  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
40Sstevel@tonic-gate  *                    All rights reserved
50Sstevel@tonic-gate  *
60Sstevel@tonic-gate  * As far as I am concerned, the code I have written for this software
70Sstevel@tonic-gate  * can be used freely for any purpose.  Any derived versions of this
80Sstevel@tonic-gate  * software must be clearly marked as such, and if the derived work is
90Sstevel@tonic-gate  * incompatible with the protocol description in the RFC file, it must be
100Sstevel@tonic-gate  * called by a name other than "ssh" or "Secure Shell".
110Sstevel@tonic-gate  */
120Sstevel@tonic-gate /*
130Sstevel@tonic-gate  * Copyright (c) 2001 Markus Friedl.  All rights reserved.
140Sstevel@tonic-gate  *
150Sstevel@tonic-gate  * Redistribution and use in source and binary forms, with or without
160Sstevel@tonic-gate  * modification, are permitted provided that the following conditions
170Sstevel@tonic-gate  * are met:
180Sstevel@tonic-gate  * 1. Redistributions of source code must retain the above copyright
190Sstevel@tonic-gate  *    notice, this list of conditions and the following disclaimer.
200Sstevel@tonic-gate  * 2. Redistributions in binary form must reproduce the above copyright
210Sstevel@tonic-gate  *    notice, this list of conditions and the following disclaimer in the
220Sstevel@tonic-gate  *    documentation and/or other materials provided with the distribution.
230Sstevel@tonic-gate  *
240Sstevel@tonic-gate  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
250Sstevel@tonic-gate  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
260Sstevel@tonic-gate  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
270Sstevel@tonic-gate  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
280Sstevel@tonic-gate  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
290Sstevel@tonic-gate  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
300Sstevel@tonic-gate  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
310Sstevel@tonic-gate  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
320Sstevel@tonic-gate  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
330Sstevel@tonic-gate  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
340Sstevel@tonic-gate  */
35*7574SJan.Pechanec@Sun.COM /*
36*7574SJan.Pechanec@Sun.COM  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
37*7574SJan.Pechanec@Sun.COM  * Use is subject to license terms.
38*7574SJan.Pechanec@Sun.COM  */
39*7574SJan.Pechanec@Sun.COM 
40*7574SJan.Pechanec@Sun.COM #ifndef	_CLIENTLOOP_H
41*7574SJan.Pechanec@Sun.COM #define	_CLIENTLOOP_H
42*7574SJan.Pechanec@Sun.COM 
43*7574SJan.Pechanec@Sun.COM #ifdef __cplusplus
44*7574SJan.Pechanec@Sun.COM extern "C" {
45*7574SJan.Pechanec@Sun.COM #endif
46*7574SJan.Pechanec@Sun.COM 
47*7574SJan.Pechanec@Sun.COM /*	$OpenBSD: clientloop.h,v 1.7 2002/04/22 21:04:52 markus Exp $	*/
480Sstevel@tonic-gate 
490Sstevel@tonic-gate /* Client side main loop for the interactive session. */
500Sstevel@tonic-gate int	 client_loop(int, int, int);
51*7574SJan.Pechanec@Sun.COM void	 client_x11_get_proto(const char *, const char *, uint_t,
52*7574SJan.Pechanec@Sun.COM 		char **, char **);
534668Sjp161948 void	 client_global_request_reply_fwd(int type, u_int32_t seq, void *ctxt);
54*7574SJan.Pechanec@Sun.COM void	 client_daemonize(void);
550Sstevel@tonic-gate 
560Sstevel@tonic-gate #ifdef __cplusplus
570Sstevel@tonic-gate }
580Sstevel@tonic-gate #endif
590Sstevel@tonic-gate 
600Sstevel@tonic-gate #endif /* _CLIENTLOOP_H */
61