summaryrefslogtreecommitdiff
path: root/src/sp_config.h
diff options
context:
space:
mode:
authorThibault "bui" Koechlin2017-12-28 17:04:06 +0100
committerjvoisin2017-12-28 17:04:06 +0100
commit9f5e8d12f05fb24c915a5266a1e908a75c8aed08 (patch)
tree9160075ea943c7fd29a3923f844a0ac0d6b8b457 /src/sp_config.h
parent62c48bf9a85e0294b7b32cea438e904e1cd50669 (diff)
Clang-format pass
- `clang-format --style="{BasedOnStyle: google, SortIncludes: false}" -i snuffleu*.c sp_*.c sp_*.h` - Update the documentation accordingly
Diffstat (limited to 'src/sp_config.h')
-rw-r--r--src/sp_config.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/sp_config.h b/src/sp_config.h
index aca9ff6..2417cf9 100644
--- a/src/sp_config.h
+++ b/src/sp_config.h
@@ -43,8 +43,8 @@ typedef struct {
43} sp_config_global; 43} sp_config_global;
44 44
45typedef struct { 45typedef struct {
46 bool enable; 46 bool enable;
47 bool simulation; 47 bool simulation;
48} sp_config_readonly_exec; 48} sp_config_readonly_exec;
49 49
50typedef struct { bool enable; } sp_config_global_strict; 50typedef struct { bool enable; } sp_config_global_strict;
@@ -56,7 +56,7 @@ typedef struct { bool enable; } sp_config_auto_cookie_secure;
56typedef struct { bool enable; } sp_config_disable_xxe; 56typedef struct { bool enable; } sp_config_disable_xxe;
57 57
58typedef struct { 58typedef struct {
59 enum samesite_type {strict=1, lax=2} samesite; 59 enum samesite_type { strict = 1, lax = 2 } samesite;
60 bool encrypt; 60 bool encrypt;
61 char *name; 61 char *name;
62 pcre *name_r; 62 pcre *name_r;
@@ -116,11 +116,12 @@ typedef struct {
116} sp_config_disabled_functions; 116} sp_config_disabled_functions;
117 117
118typedef struct { 118typedef struct {
119 sp_list_node *cookies; //list of sp_cookie for regexp/names 119 sp_list_node *cookies; // list of sp_cookie for regexp/names
120} sp_config_cookie; 120} sp_config_cookie;
121 121
122typedef struct { 122typedef struct {
123 sp_list_node *construct_include; // list of rules for `(include|require)_(once)?` 123 sp_list_node
124 *construct_include; // list of rules for `(include|require)_(once)?`
124 sp_list_node *construct_eval; 125 sp_list_node *construct_eval;
125 sp_list_node *construct_echo; 126 sp_list_node *construct_echo;
126} sp_config_disabled_constructs; 127} sp_config_disabled_constructs;
@@ -231,6 +232,6 @@ int parse_cidr(char *restrict, char *restrict, void *);
231int parse_php_type(char *restrict, char *restrict, void *); 232int parse_php_type(char *restrict, char *restrict, void *);
232 233
233// cleanup 234// cleanup
234void sp_disabled_function_list_free(sp_list_node*); 235void sp_disabled_function_list_free(sp_list_node *);
235 236
236#endif /* SP_CONFIG_H */ 237#endif /* SP_CONFIG_H */