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