⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mod_wrap2.h.in

📁 ProFTPd 是一款基于GPL协议的可配置的FTP服务器
💻 IN
字号:
/* * ProFTPD: mod_wrap2 -- tcpwrappers-like access control * * Copyright (c) 2000-2007 TJ Saunders * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA. * * As a special exemption, TJ Saunders and other respective copyright holders * give permission to link this program with OpenSSL, and distribute the * resulting executable, without including the source code for OpenSSL in the * source distribution. * * $Id: mod_wrap2.h.in,v 1.3 2007/08/03 14:52:06 castaglia Exp $ * * -- DO NOT MODIFY THE LINE BELOW -- * $Libraries: @WRAP2_LIBS@$ */#ifndef MOD_WRAP2_H#define MOD_WRAP2_H#include "conf.h"#include "privs.h"#define MOD_WRAP2_VERSION 	"mod_wrap2/2.0.6"/* Make sure the version of proftpd is as necessary. */#if PROFTPD_VERSION_NUMBER < 0x0001030001# error "ProFTPD 1.3.0rc1 or later required"#endif/* Define if using tcpwrapper options.  */#undef WRAP2_USE_OPTIONS/* Define if using NIS/YP.  */#undef WRAP2_USE_NIS#define WRAP2_BUFFER_SIZE	256#define WRAP2_DEFAULT_SERVICE_NAME	"proftpd"/* Source abstraction object */typedef struct table_obj {  /* Memory pool for this object */  pool *tab_pool;  /* Table handle */  void *tab_handle;  /* Table name */  const char *tab_name;  /* Arbitrary data pointer */  void *tab_data;  /* Table I/O routines */  int (*tab_close)(struct table_obj *);  array_header *(*tab_fetch_clients)(struct table_obj *, const char *);  array_header *(*tab_fetch_daemons)(struct table_obj *, const char *);  array_header *(*tab_fetch_options)(struct table_obj *, const char *);} wrap2_table_t;/* Function prototypes necessary for wrap sub-modules */int wrap2_log(const char *, ...);int wrap2_register(const char *, wrap2_table_t *(*tab_open)(pool *, char *));char *wrap2_strsplit(char *, int);#endif /* MOD_WRAP2_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -