1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
|
/*
* ProFTPD - FTP server daemon
* Copyright (c) 1997, 1998 Public Flood Software
* Copyright (c) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net>
* Copyright (c) 2001-2021 The ProFTPD Project team
*
* 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., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*
* As a special exemption, Public Flood Software/MacGyver aka Habeeb J. Dihu
* 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.
*/
/* Generic configuration and standard header file includes. */
#ifndef PR_CONF_H
#define PR_CONF_H
#include "os.h"
#include "version.h"
/* Define our OpenSSL API compatibility level to 1.0.0. Any symbols older
* than that will raise an error during compilation.
*/
#if defined(PR_USE_OPENSSL_API_COMPAT) && \
!defined(OPENSSL_API_COMPAT)
# define OPENSSL_API_COMPAT 0x10000000L
#endif
/* The tunable options header needs to be included after all the system headers,
* so that limits are picked up properly.
*/
#include "options.h"
#if defined(HAVE_LLU) && SIZEOF_OFF_T == 8
# define PR_LU "llu"
# define pr_off_t unsigned long long
#else
# define PR_LU "lu"
# define pr_off_t unsigned long
#endif
/********************************************************************
* This is NOT the user configurable section. Look in options.h
* for tunable parameters.
********************************************************************/
#ifndef __PROFTPD_SUPPORT_LIBRARY
/* This section is only needed for modules and the core source files,
* not for the support library.
*/
#include "base.h"
#include "pool.h"
#include "str.h"
#include "ascii.h"
#include "table.h"
#include "signals.h"
#include "proftpd.h"
#include "support.h"
#include "str.h"
#include "sets.h"
#include "configdb.h"
#include "dirtree.h"
#include "expr.h"
#include "rlimit.h"
#include "filter.h"
#include "modules.h"
#include "netio.h"
#include "regexp.h"
#include "stash.h"
#include "auth.h"
#include "response.h"
#include "timers.h"
#include "inet.h"
#include "child.h"
#include "netaddr.h"
#include "netacl.h"
#include "class.h"
#include "cmd.h"
#include "bindings.h"
#include "help.h"
#include "feat.h"
#include "ftp.h"
#include "log.h"
#include "parser.h"
#include "xferlog.h"
#include "scoreboard.h"
#include "data.h"
#include "display.h"
#include "fsio.h"
#include "mkhome.h"
#include "ctrls.h"
#include "session.h"
#include "event.h"
#include "var.h"
#include "throttle.h"
#include "trace.h"
#include "encode.h"
#include "compat.h"
#include "proctitle.h"
#include "pidfile.h"
#include "env.h"
#include "random.h"
#include "pr-syslog.h"
#include "json.h"
#include "memcache.h"
#include "redis.h"
# ifdef HAVE_SETPASSENT
# define setpwent() setpassent(1)
# endif /* HAVE_SETPASSENT */
# ifdef HAVE_SETGROUPENT
# define setgrent() setgroupent(1)
# endif /* HAVE_SETGROUPENT */
/* Define a buffer size to use for responses, making sure it is big enough
* to handle large path names (e.g. for MKD responses).
*/
#define PR_RESPONSE_BUFFER_SIZE (PR_TUNABLE_BUFFER_SIZE + PR_TUNABLE_PATH_MAX)
#endif /* __PROFTPD_SUPPORT_LIBRARY */
#ifdef WITH_DMALLOC
# include <dmalloc.h>
#endif /* WITH_DMALLOC */
#endif /* PR_CONF_H */
|