Skip to content

Commit 9a8ed61

Browse files
committed
modsecurity: use correct namespace
1 parent a8de5a6 commit 9a8ed61

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/ngx_http_modsecurity_module.c

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ ngx_http_modsecurity_create_ctx(ngx_http_request_t *r, ModSecurity *modsec,
307307

308308

309309
static char *
310-
ngx_conf_set_rules(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
310+
ngx_http_modsecurity_set_rules(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
311311
{
312312
ngx_http_modsecurity_conf_t *mcf = conf;
313313

@@ -347,7 +347,8 @@ ngx_conf_set_rules(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
347347

348348

349349
static char *
350-
ngx_conf_set_rules_file(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
350+
ngx_http_modsecurity_set_rules_file(ngx_conf_t *cf, ngx_command_t *cmd,
351+
void *conf)
351352
{
352353
ngx_http_modsecurity_conf_t *mcf = conf;
353354

@@ -387,7 +388,8 @@ ngx_conf_set_rules_file(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
387388

388389

389390
static char *
390-
ngx_conf_set_rules_remote(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
391+
ngx_http_modsecurity_set_rules_remote(ngx_conf_t *cf, ngx_command_t *cmd,
392+
void *conf)
391393
{
392394
ngx_http_modsecurity_conf_t *mcf = conf;
393395

@@ -428,7 +430,8 @@ ngx_conf_set_rules_remote(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
428430
}
429431

430432
static char *
431-
ngx_conf_set_transaction_id(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) {
433+
ngx_http_modsecurity_set_transaction_id(ngx_conf_t *cf, ngx_command_t *cmd,
434+
void *conf) {
432435
ngx_str_t *value;
433436
ngx_http_complex_value_t cv;
434437
ngx_http_compile_complex_value_t ccv;
@@ -470,31 +473,31 @@ static ngx_command_t ngx_http_modsecurity_commands[] = {
470473
{
471474
ngx_string("modsecurity_rules"),
472475
NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1,
473-
ngx_conf_set_rules,
476+
ngx_http_modsecurity_set_rules,
474477
NGX_HTTP_LOC_CONF_OFFSET,
475478
0,
476479
NULL
477480
},
478481
{
479482
ngx_string("modsecurity_rules_file"),
480483
NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1,
481-
ngx_conf_set_rules_file,
484+
ngx_http_modsecurity_set_rules_file,
482485
NGX_HTTP_LOC_CONF_OFFSET,
483486
0,
484487
NULL
485488
},
486489
{
487490
ngx_string("modsecurity_rules_remote"),
488491
NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE2,
489-
ngx_conf_set_rules_remote,
492+
ngx_http_modsecurity_set_rules_remote,
490493
NGX_HTTP_LOC_CONF_OFFSET,
491494
0,
492495
NULL
493496
},
494497
{
495498
ngx_string("modsecurity_transaction_id"),
496499
NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_MAIN_CONF|NGX_CONF_1MORE,
497-
ngx_conf_set_transaction_id,
500+
ngx_http_modsecurity_set_transaction_id,
498501
NGX_HTTP_LOC_CONF_OFFSET,
499502
0,
500503
NULL

0 commit comments

Comments
 (0)