diff options
| author | Ben Fuhrmannek | 2021-09-16 12:43:11 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-09-16 12:43:11 +0200 |
| commit | a99c0b3ba7ebbd27fd62f2bde3963354c2bf55e3 (patch) | |
| tree | 4890517eb3578b3ba015ae9e5c5f88e46f2a33ca /src/sp_config.h | |
| parent | 6e07cdb870513270a3c08abc7ecdca64ad2af400 (diff) | |
ported sid min/max restriction from suhosin
Diffstat (limited to 'src/sp_config.h')
| -rw-r--r-- | src/sp_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sp_config.h b/src/sp_config.h index af9b905..df36976 100644 --- a/src/sp_config.h +++ b/src/sp_config.h | |||
| @@ -81,6 +81,8 @@ typedef struct { | |||
| 81 | typedef struct { | 81 | typedef struct { |
| 82 | bool encrypt; | 82 | bool encrypt; |
| 83 | bool simulation; | 83 | bool simulation; |
| 84 | u_long sid_min_length; | ||
| 85 | u_long sid_max_length; | ||
| 84 | } sp_config_session; | 86 | } sp_config_session; |
| 85 | 87 | ||
| 86 | typedef struct { | 88 | typedef struct { |
| @@ -292,6 +294,8 @@ typedef struct { | |||
| 292 | #define SP_TOKEN_MAX_EXECUTION_DEPTH "max_execution_depth" | 294 | #define SP_TOKEN_MAX_EXECUTION_DEPTH "max_execution_depth" |
| 293 | #define SP_TOKEN_SERVER_ENCODE "server_encode" | 295 | #define SP_TOKEN_SERVER_ENCODE "server_encode" |
| 294 | #define SP_TOKEN_SERVER_STRIP "server_strip" | 296 | #define SP_TOKEN_SERVER_STRIP "server_strip" |
| 297 | #define SP_TOKEN_SID_MIN_LENGTH "sid_min_length" | ||
| 298 | #define SP_TOKEN_SID_MAX_LENGTH "sid_max_length" | ||
| 295 | 299 | ||
| 296 | // upload_validator | 300 | // upload_validator |
| 297 | #define SP_TOKEN_UPLOAD_SCRIPT "script" | 301 | #define SP_TOKEN_UPLOAD_SCRIPT "script" |
