Lines Matching defs:dcfg
104 cookie_dir_rec *dcfg;
109 dcfg = ap_get_module_config(r->per_dir_config, &usertrack_module);
114 dcfg->cookie_name, cookiebuf);
116 if ((dcfg->style == CT_UNSET) || (dcfg->style == CT_NETSCAPE)) {
136 dcfg->cookie_name, cookiebuf);
138 if (dcfg->cookie_domain != NULL) {
140 dcfg->cookie_domain,
141 (dcfg->style == CT_COOKIE2
148 (dcfg->style == CT_COOKIE2 ? "Set-Cookie2" : "Set-Cookie"),
154 /* dcfg->regexp is "^cookie_name=([^;]+)|;[ \t]+cookie_name=([^;]+)",
158 static void set_and_comp_regexp(cookie_dir_rec *dcfg,
195 dcfg->regexp_string = apr_pstrcat(p, "^",
201 dcfg->regexp = ap_pregcomp(p, dcfg->regexp_string, AP_REG_EXTENDED);
202 ap_assert(dcfg->regexp != NULL);
207 cookie_dir_rec *dcfg = ap_get_module_config(r->per_dir_config,
213 if (!dcfg->enabled || r->main) {
218 if (!ap_regexec(dcfg->regexp, cookie_header, NUM_SUBS, regm, 0)) {
266 cookie_dir_rec *dcfg;
268 dcfg = (cookie_dir_rec *) apr_pcalloc(p, sizeof(cookie_dir_rec));
269 dcfg->cookie_name = COOKIE_NAME;
270 dcfg->cookie_domain = NULL;
271 dcfg->style = CT_UNSET;
272 dcfg->enabled = 0;
276 set_and_comp_regexp(dcfg, p, COOKIE_NAME);
278 return dcfg;
283 cookie_dir_rec *dcfg = mconfig;
285 dcfg->enabled = arg;
360 cookie_dir_rec *dcfg = (cookie_dir_rec *) mconfig;
362 dcfg->cookie_name = name;
364 set_and_comp_regexp(dcfg, cmd->pool, name);
366 if (dcfg->regexp == NULL) {
369 if (dcfg->regexp->re_nsub + 1 != NUM_SUBS) {
383 cookie_dir_rec *dcfg;
385 dcfg = (cookie_dir_rec *) mconfig;
400 dcfg->cookie_domain = name;
410 cookie_dir_rec *dcfg;
412 dcfg = (cookie_dir_rec *) mconfig;
415 dcfg->style = CT_NETSCAPE;
419 dcfg->style = CT_COOKIE;
423 dcfg->style = CT_COOKIE2;