-
Notifications
You must be signed in to change notification settings - Fork 4
/
mod_reset.h
51 lines (48 loc) · 1.07 KB
/
mod_reset.h
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
#define MODULE_NAME "reset"
#define CORE_PRIVATE
#include <ap_config.h>
#include <apr_strings.h>
#include <httpd.h>
#include <http_config.h>
#include <http_core.h>
#include <http_log.h>
#ifndef NO_PHP
#include <php_version.h>
#include <zend.h>
#if PHP_MAJOR_VERSION >= 7
#include <zend_sort.h>
#else
#include <zend_qsort.h>
#endif
#include <zend_API.h>
#include <zend_ini.h>
#include <zend_alloc.h>
#include <zend_operators.h>
#endif
#if AP_SERVER_MINORVERSION_NUMBER == 2
#define APACHE_22
#endif
typedef struct {
unsigned long enable:1;
apr_table_t *php_ini;
char *admin;
char *docroot;
char *tmpdir;
int nheaders;
#ifdef MOD_RUID2
char *ruid_uid;
#endif
char *deny_header;
char *hash;
} reset_config;
#ifdef MOD_RUID2
#define RUID_MAXGROUPS 8
typedef struct
{
int8_t ruid_mode;
uid_t ruid_uid;
gid_t ruid_gid;
gid_t groups[RUID_MAXGROUPS];
int groupsnr;
} ruid_dir_config_t;
#endif