1162852Sdes/* $OpenBSD: serverloop.h,v 1.6 2006/03/25 22:22:43 djm Exp $ */
276259Sgreen
376259Sgreen/*
476259Sgreen * Author: Tatu Ylonen <ylo@cs.hut.fi>
576259Sgreen * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
676259Sgreen *                    All rights reserved
776259Sgreen *
876259Sgreen * As far as I am concerned, the code I have written for this software
976259Sgreen * can be used freely for any purpose.  Any derived versions of this
1076259Sgreen * software must be clearly marked as such, and if the derived work is
1176259Sgreen * incompatible with the protocol description in the RFC file, it must be
1276259Sgreen * called by a name other than "ssh" or "Secure Shell".
1376259Sgreen */
1476259Sgreen/*
1576259Sgreen * Performs the interactive session.  This handles data transmission between
1676259Sgreen * the client and the program.  Note that the notion of stdin, stdout, and
1776259Sgreen * stderr in this function is sort of reversed: this function writes to stdin
1876259Sgreen * (of the child program), and reads from stdout and stderr (of the child
1976259Sgreen * program).
2076259Sgreen */
2192555Sdes#ifndef SERVERLOOP_H
2292555Sdes#define SERVERLOOP_H
2392555Sdes
2492555Sdesvoid    server_loop(pid_t, int, int, int);
2592555Sdesvoid    server_loop2(Authctxt *);
2692555Sdes
2792555Sdes#endif
28