Lines Matching defs:rc

152                     rule_component *rc)
154 if (rc == NULL)
157 if (rc->kwval_type == kwvaltype_regexp) {
158 free(rc->regsrc);
159 regfree(&rc->regexp);
161 free(rc);
169 rule_component *rc, *trc;
173 for (rc = rs->crs; rc != NULL;) {
174 trc = rc->next;
175 free_rule_component(context, rc);
176 rc = trc;
186 rule_component *rc)
204 bitptr = &rc->eku_bits;
206 bitptr = &rc->ku_bits;
260 rule_component *rc = NULL;
289 rc = calloc(1, sizeof(*rc));
290 if (rc == NULL) {
294 rc->next = NULL;
295 rc->kw_type = kw_type;
296 rc->kwval_type = kwval_type;
343 ret = regcomp(&rc->regexp, value, REG_EXTENDED);
345 regerror(ret, &rc->regexp, err_buf, sizeof(err_buf));
351 rc->regsrc = strdup(value);
352 if (rc->regsrc == NULL) {
357 retval = parse_list_value(context, rc->kw_type, value, rc);
365 *ret_rule = rc;
369 if (retval && rc != NULL)
370 free_rule_component(context, rc);
383 rule_component *rc = NULL, *trc;
417 ret = parse_rule_component(context, &rule, &remaining, &rc);
433 rs->crs = rc;
435 trc->next = rc;
451 regexp_match(krb5_context context, rule_component *rc, char *value)
456 __FUNCTION__, keyword2string(rc->kw_type), rc->regsrc, value);
458 code = regexec(&rc->regexp, value, 0, NULL, 0);
468 rule_component *rc,
476 switch (rc->kwval_type) {
478 switch (rc->kw_type) {
480 match = regexp_match(context, rc, md->subject_dn);
483 match = regexp_match(context, rc, md->issuer_dn);
490 match = regexp_match(context, rc, princ_string);
498 __FUNCTION__, keyword2string(rc->kw_type),
504 switch(rc->kw_type) {
507 __FUNCTION__, keyword2string(rc->kw_type),
508 rc->eku_bits, md->eku_bits);
509 if ((rc->eku_bits & md->eku_bits) == rc->eku_bits)
514 __FUNCTION__, keyword2string(rc->kw_type),
515 rc->ku_bits, md->ku_bits);
516 if ((rc->ku_bits & md->ku_bits) == rc->ku_bits)
521 __FUNCTION__, keyword2string(rc->kw_type),
528 __FUNCTION__, rc->kwval_type);
554 rule_component *rc;
583 for (rc = rs->crs; rc != NULL; rc = rc->next) {
584 comp_match = component_match(context, rc, md);
587 __FUNCTION__, keyword2string(rc->kw_type));
602 if (rc == NULL && comp_match) {