Lines Matching refs:b
122 pconf->auth_ldap_groupmember = cpv->v.b; in mod_authn_ldap_merge_config_cpv()
157 char *b, *e = host->ptr; in mod_authn_add_scheme() local
160 while (*(b = e)) { in mod_authn_add_scheme()
162 while (*b==' '||*b=='\t'||*b=='\r'||*b=='\n'||*b==',') ++b; in mod_authn_add_scheme()
163 if (*b == '\0') break; in mod_authn_add_scheme()
164 e = b; in mod_authn_add_scheme()
170 if (buffer_eq_icase_ssn(b, schemes[j], strlen(schemes[j]))) { in mod_authn_add_scheme()
176 buffer_append_string_len(tb, b, (size_t)(e - b)); in mod_authn_add_scheme()
237 if (!buffer_is_blank(cpv->v.b)) { in SETDEFAULTS_FUNC()
238 buffer *b; in SETDEFAULTS_FUNC() local
239 *(const buffer **)&b = cpv->v.b; in SETDEFAULTS_FUNC()
240 mod_authn_add_scheme(srv, b); in SETDEFAULTS_FUNC()
243 ldc->auth_ldap_hostname = b->ptr; 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()
259 buffer *b; in SETDEFAULTS_FUNC() local
260 *(const buffer **)&b = cpv->v.b; in SETDEFAULTS_FUNC()
261 if (*b->ptr != ',') { in SETDEFAULTS_FUNC()
263 char *d = b->ptr; in SETDEFAULTS_FUNC()
265 if (NULL == strchr(b->ptr, '?')) { in SETDEFAULTS_FUNC()
272 cpv->v.v = b; in SETDEFAULTS_FUNC()
280 cafile = !buffer_is_blank(cpv->v.b) in SETDEFAULTS_FUNC()
281 ? cpv->v.b->ptr in SETDEFAULTS_FUNC()
290 binddn = !buffer_is_blank(cpv->v.b) in SETDEFAULTS_FUNC()
291 ? cpv->v.b->ptr 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()
370 const char * const b = raw->ptr; in mod_authn_append_ldap_dn_escape() local
374 if (b[0] == ' ') { /* || b[0] == '#' handled below for MS Active Directory*/ in mod_authn_append_ldap_dn_escape()
385 if (((unsigned char *)b)[len] > 0x7f) in mod_authn_append_ldap_dn_escape()
387 switch (b[len]) { in mod_authn_append_ldap_dn_escape()
403 buffer_append_string_len(filter, b+i, len); in mod_authn_append_ldap_dn_escape()
409 buffer_append_char(filter, b[i]); in mod_authn_append_ldap_dn_escape()
416 f[1] = "0123456789abcdef"[(((unsigned char *)b)[i] >> 4) & 0xf]; in mod_authn_append_ldap_dn_escape()
417 f[2] = "0123456789abcdef"[(((unsigned char *)b)[i] ) & 0xf]; in mod_authn_append_ldap_dn_escape()
421 if (rlen > 1 && b[rlen-1] == ' ') { in mod_authn_append_ldap_dn_escape()
458 const char * const b = raw->ptr; in mod_authn_append_ldap_filter_escape() local
466 if (((unsigned char *)b)[len] > 0x7f) in mod_authn_append_ldap_filter_escape()
468 switch (b[len]) { in mod_authn_append_ldap_filter_escape()
479 buffer_append_string_len(filter, b+i, len); in mod_authn_append_ldap_filter_escape()
486 f[1] = "0123456789abcdef"[(((unsigned char *)b)[i] >> 4) & 0xf]; in mod_authn_append_ldap_filter_escape()
487 f[2] = "0123456789abcdef"[(((unsigned char *)b)[i] ) & 0xf]; in mod_authn_append_ldap_filter_escape()
739 for (const char *b = template->ptr, *d; *b; b = d+1) { in mod_authn_ldap_basic() local
740 if (NULL != (d = strchr(b, '?'))) { in mod_authn_ldap_basic()
741 buffer_append_string_len(ldap_filter, b, (size_t)(d - b)); in mod_authn_ldap_basic()
746 buffer_append_string_len(ldap_filter, b, (size_t)(d - b)); in mod_authn_ldap_basic()