Skip to content

Commit

Permalink
Added preprocessor if NGX_PCRE
Browse files Browse the repository at this point in the history
  • Loading branch information
medinski94 committed Aug 14, 2020
1 parent 8580a27 commit 1d563d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ngx_http_auth_spnego_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ ngx_http_auth_spnego_create_loc_conf(
conf->force_realm = NGX_CONF_UNSET;
conf->allow_basic = NGX_CONF_UNSET;
conf->auth_princs = NGX_CONF_UNSET_PTR;
#if (NGX_PCRE)
conf->auth_princs_regex = NGX_CONF_UNSET_PTR;
#endif
conf->map_to_local = NGX_CONF_UNSET;
conf->delegate_credentials = NGX_CONF_UNSET;
conf->constrained_delegation = NGX_CONF_UNSET;
Expand Down Expand Up @@ -372,7 +374,10 @@ ngx_http_auth_spnego_merge_loc_conf(
ngx_conf_merge_off_value(conf->allow_basic, prev->allow_basic, 1);

ngx_conf_merge_ptr_value(conf->auth_princs, prev->auth_princs, NGX_CONF_UNSET_PTR);

#if (NGX_PCRE)
ngx_conf_merge_ptr_value(conf->auth_princs_regex, prev->auth_princs_regex, NGX_CONF_UNSET_PTR);
#endif

ngx_conf_merge_off_value(conf->map_to_local, prev->map_to_local, 0);

Expand Down

0 comments on commit 1d563d8

Please sign in to comment.