Lines Matching refs:cpv

73         config_plugin_value_t *cpv = p->cvlist + p->cvlist[i].v.u2[0];  in FREE_FUNC()  local
74 for (; -1 != cpv->k_id; ++cpv) { in FREE_FUNC()
75 switch (cpv->k_id) { in FREE_FUNC()
77 if (cpv->vtype == T_CONFIG_LOCAL) { in FREE_FUNC()
78 plugin_config_ldap *s = cpv->v.v; in FREE_FUNC()
93 …authn_ldap_merge_config_cpv(plugin_config * const pconf, const config_plugin_value_t * const cpv) { in mod_authn_ldap_merge_config_cpv() argument
94 switch (cpv->k_id) { /* index into static config_plugin_keys_t cpk[] */ in mod_authn_ldap_merge_config_cpv()
96 if (cpv->vtype == T_CONFIG_LOCAL) in mod_authn_ldap_merge_config_cpv()
97 pconf->ldc = cpv->v.v; in mod_authn_ldap_merge_config_cpv()
100 if (cpv->vtype == T_CONFIG_LOCAL) in mod_authn_ldap_merge_config_cpv()
101 pconf->auth_ldap_basedn = cpv->v.v; in mod_authn_ldap_merge_config_cpv()
104 pconf->auth_ldap_filter = cpv->v.v; in mod_authn_ldap_merge_config_cpv()
107 pconf->auth_ldap_cafile = cpv->v.v; in mod_authn_ldap_merge_config_cpv()
110 pconf->auth_ldap_starttls = (int)cpv->v.u; in mod_authn_ldap_merge_config_cpv()
113 pconf->auth_ldap_binddn = cpv->v.v; in mod_authn_ldap_merge_config_cpv()
116 pconf->auth_ldap_bindpw = cpv->v.v; in mod_authn_ldap_merge_config_cpv()
119 pconf->auth_ldap_allow_empty_pw = (int)cpv->v.u; in mod_authn_ldap_merge_config_cpv()
122 pconf->auth_ldap_groupmember = cpv->v.b; in mod_authn_ldap_merge_config_cpv()
134 …c void mod_authn_ldap_merge_config(plugin_config * const pconf, const config_plugin_value_t *cpv) { in mod_authn_ldap_merge_config() argument
136 mod_authn_ldap_merge_config_cpv(pconf, cpv); in mod_authn_ldap_merge_config()
137 } while ((++cpv)->k_id != -1); in mod_authn_ldap_merge_config()
229 config_plugin_value_t *cpv = p->cvlist + p->cvlist[i].v.u2[0]; in SETDEFAULTS_FUNC() local
234 for (; -1 != cpv->k_id; ++cpv) { in SETDEFAULTS_FUNC()
235 switch (cpv->k_id) { in SETDEFAULTS_FUNC()
237 if (!buffer_is_blank(cpv->v.b)) { in SETDEFAULTS_FUNC()
239 *(const buffer **)&b = cpv->v.b; in SETDEFAULTS_FUNC()
244 cpv->v.v = ldc; in SETDEFAULTS_FUNC()
247 cpv->v.v = NULL; in SETDEFAULTS_FUNC()
249 cpv->vtype = T_CONFIG_LOCAL; in SETDEFAULTS_FUNC()
252 cpv->vtype = T_CONFIG_LOCAL; in SETDEFAULTS_FUNC()
253 cpv->v.v = !buffer_is_blank(cpv->v.b) in SETDEFAULTS_FUNC()
254 ? cpv->v.b->ptr in SETDEFAULTS_FUNC()
258 if (!buffer_is_blank(cpv->v.b)) { in SETDEFAULTS_FUNC()
260 *(const buffer **)&b = cpv->v.b; in SETDEFAULTS_FUNC()
268 cpk[cpv->k_id].k); in SETDEFAULTS_FUNC()
272 cpv->v.v = b; in SETDEFAULTS_FUNC()
275 cpv->v.v = NULL; in SETDEFAULTS_FUNC()
277 cpv->vtype = T_CONFIG_LOCAL; in SETDEFAULTS_FUNC()
280 cafile = !buffer_is_blank(cpv->v.b) in SETDEFAULTS_FUNC()
281 ? cpv->v.b->ptr in SETDEFAULTS_FUNC()
283 cpv->vtype = T_CONFIG_LOCAL; in SETDEFAULTS_FUNC()
284 cpv->v.v = cafile; in SETDEFAULTS_FUNC()
287 starttls = (int)cpv->v.u; in SETDEFAULTS_FUNC()
290 binddn = !buffer_is_blank(cpv->v.b) in SETDEFAULTS_FUNC()
291 ? cpv->v.b->ptr in SETDEFAULTS_FUNC()
293 cpv->vtype = T_CONFIG_LOCAL; in SETDEFAULTS_FUNC()
294 cpv->v.v = binddn; in SETDEFAULTS_FUNC()
297 cpv->vtype = T_CONFIG_LOCAL; in SETDEFAULTS_FUNC()
298 cpv->v.v = bindpw = cpv->v.b->ptr; in SETDEFAULTS_FUNC()
303 if (buffer_is_blank(cpv->v.b)) in SETDEFAULTS_FUNC()
304 cpv->v.b = NULL; in SETDEFAULTS_FUNC()
307 timeout = strtol(cpv->v.b->ptr, NULL, 10); in SETDEFAULTS_FUNC()
331 const config_plugin_value_t *cpv = p->cvlist + p->cvlist->v.u2[0]; in SETDEFAULTS_FUNC() local
332 if (-1 != cpv->k_id) in SETDEFAULTS_FUNC()
333 mod_authn_ldap_merge_config(&p->defaults, cpv); in SETDEFAULTS_FUNC()