xref: /freebsd/crypto/openssh/session.h (revision b66f2d16a0435b7e7f3edde6101797004ae8d3b9)
1b66f2d16SKris Kennaway /*
2b66f2d16SKris Kennaway  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
3b66f2d16SKris Kennaway  *
4b66f2d16SKris Kennaway  * Redistribution and use in source and binary forms, with or without
5b66f2d16SKris Kennaway  * modification, are permitted provided that the following conditions
6b66f2d16SKris Kennaway  * are met:
7b66f2d16SKris Kennaway  * 1. Redistributions of source code must retain the above copyright
8b66f2d16SKris Kennaway  *    notice, this list of conditions and the following disclaimer.
9b66f2d16SKris Kennaway  * 2. Redistributions in binary form must reproduce the above copyright
10b66f2d16SKris Kennaway  *    notice, this list of conditions and the following disclaimer in the
11b66f2d16SKris Kennaway  *    documentation and/or other materials provided with the distribution.
12b66f2d16SKris Kennaway  *
13b66f2d16SKris Kennaway  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14b66f2d16SKris Kennaway  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15b66f2d16SKris Kennaway  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16b66f2d16SKris Kennaway  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17b66f2d16SKris Kennaway  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18b66f2d16SKris Kennaway  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19b66f2d16SKris Kennaway  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20b66f2d16SKris Kennaway  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21b66f2d16SKris Kennaway  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22b66f2d16SKris Kennaway  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23b66f2d16SKris Kennaway  */
24a04a10f8SKris Kennaway #ifndef SESSION_H
25a04a10f8SKris Kennaway #define SESSION_H
26a04a10f8SKris Kennaway 
27a04a10f8SKris Kennaway /* SSH1 */
28a04a10f8SKris Kennaway void	do_authenticated(struct passwd * pw);
29a04a10f8SKris Kennaway 
30a04a10f8SKris Kennaway /* SSH2 */
31a04a10f8SKris Kennaway void	do_authenticated2(void);
32a04a10f8SKris Kennaway int	session_open(int id);
33a04a10f8SKris Kennaway void	session_input_channel_req(int id, void *arg);
34a04a10f8SKris Kennaway void	session_close_by_pid(pid_t pid, int status);
35a04a10f8SKris Kennaway void	session_close_by_channel(int id, void *arg);
36a04a10f8SKris Kennaway 
37a04a10f8SKris Kennaway #endif
38