libssh 0.5.4
|
00001 /* 00002 * This file is part of the SSH Library 00003 * 00004 * Copyright (c) 2010 by Aris Adamantiadis 00005 * 00006 * The SSH Library is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU Lesser General Public License as published by 00008 * the Free Software Foundation; either version 2.1 of the License, or (at your 00009 * option) any later version. 00010 * 00011 * The SSH Library is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00013 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00014 * License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public License 00017 * along with the SSH Library; see the file COPYING. If not, write to 00018 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 00019 * MA 02111-1307, USA. 00020 */ 00021 00022 #ifndef BIND_H_ 00023 #define BIND_H_ 00024 00025 #include "libssh/priv.h" 00026 #include "libssh/session.h" 00027 00028 struct ssh_bind_struct { 00029 struct ssh_common_struct common; /* stuff common to ssh_bind and ssh_session */ 00030 struct ssh_bind_callbacks_struct *bind_callbacks; 00031 void *bind_callbacks_userdata; 00032 00033 struct ssh_poll_handle_struct *poll; 00034 /* options */ 00035 char *wanted_methods[10]; 00036 char *banner; 00037 char *dsakey; 00038 char *rsakey; 00039 char *bindaddr; 00040 socket_t bindfd; 00041 unsigned int bindport; 00042 int blocking; 00043 int toaccept; 00044 }; 00045 00046 struct ssh_poll_handle_struct *ssh_bind_get_poll(struct ssh_bind_struct 00047 *sshbind); 00048 00049 00050 #endif /* BIND_H_ */