libssh 0.5.2
|
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 00027 struct ssh_bind_struct { 00028 struct error_struct error; 00029 00030 ssh_callbacks callbacks; /* Callbacks to user functions */ 00031 struct ssh_bind_callbacks_struct *bind_callbacks; 00032 void *bind_callbacks_userdata; 00033 00034 struct ssh_poll_handle_struct *poll; 00035 /* options */ 00036 char *wanted_methods[10]; 00037 char *banner; 00038 char *dsakey; 00039 char *rsakey; 00040 char *bindaddr; 00041 socket_t bindfd; 00042 unsigned int bindport; 00043 unsigned int log_verbosity; 00044 00045 int blocking; 00046 int toaccept; 00047 }; 00048 00049 struct ssh_poll_handle_struct *ssh_bind_get_poll(struct ssh_bind_struct 00050 *sshbind); 00051 00052 00053 #endif /* BIND_H_ */