diff options
| author | Thibault "bui" Koechlin | 2017-12-28 17:04:06 +0100 |
|---|---|---|
| committer | jvoisin | 2017-12-28 17:04:06 +0100 |
| commit | 9f5e8d12f05fb24c915a5266a1e908a75c8aed08 (patch) | |
| tree | 9160075ea943c7fd29a3923f844a0ac0d6b8b457 /src/sp_config.h | |
| parent | 62c48bf9a85e0294b7b32cea438e904e1cd50669 (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.h | 13 |
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 | ||
| 45 | typedef struct { | 45 | typedef 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 | ||
| 50 | typedef struct { bool enable; } sp_config_global_strict; | 50 | typedef struct { bool enable; } sp_config_global_strict; |
| @@ -56,7 +56,7 @@ typedef struct { bool enable; } sp_config_auto_cookie_secure; | |||
| 56 | typedef struct { bool enable; } sp_config_disable_xxe; | 56 | typedef struct { bool enable; } sp_config_disable_xxe; |
| 57 | 57 | ||
| 58 | typedef struct { | 58 | typedef 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 | ||
| 118 | typedef struct { | 118 | typedef 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 | ||
| 122 | typedef struct { | 122 | typedef 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 *); | |||
| 231 | int parse_php_type(char *restrict, char *restrict, void *); | 232 | int parse_php_type(char *restrict, char *restrict, void *); |
| 232 | 233 | ||
| 233 | // cleanup | 234 | // cleanup |
| 234 | void sp_disabled_function_list_free(sp_list_node*); | 235 | void sp_disabled_function_list_free(sp_list_node *); |
| 235 | 236 | ||
| 236 | #endif /* SP_CONFIG_H */ | 237 | #endif /* SP_CONFIG_H */ |
