Lines Matching refs:sub

39 static int nc_dn(const X509_NAME *sub, const X509_NAME *nm);
40 static int nc_dns(ASN1_IA5STRING *sub, ASN1_IA5STRING *dns);
41 static int nc_email(ASN1_IA5STRING *sub, ASN1_IA5STRING *eml);
155 GENERAL_SUBTREE *sub = NULL; in v2i_NAME_CONSTRAINTS() local
175 sub = GENERAL_SUBTREE_new(); in v2i_NAME_CONSTRAINTS()
176 if (sub == NULL) { in v2i_NAME_CONSTRAINTS()
180 if (!v2i_GENERAL_NAME_ex(sub->base, method, ctx, &tval, 1)) { in v2i_NAME_CONSTRAINTS()
186 if (*ptree == NULL || !sk_GENERAL_SUBTREE_push(*ptree, sub)) { in v2i_NAME_CONSTRAINTS()
190 sub = NULL; in v2i_NAME_CONSTRAINTS()
197 GENERAL_SUBTREE_free(sub); in v2i_NAME_CONSTRAINTS()
484 static int nc_minmax_valid(GENERAL_SUBTREE *sub) { in nc_minmax_valid() argument
488 if (sub->maximum) in nc_minmax_valid()
491 if (sub->minimum) { in nc_minmax_valid()
492 bn = ASN1_INTEGER_to_BN(sub->minimum, NULL); in nc_minmax_valid()
503 GENERAL_SUBTREE *sub; in nc_match() local
523 sub = sk_GENERAL_SUBTREE_value(nc->permittedSubtrees, i); in nc_match()
524 if (effective_type != sub->base->type in nc_match()
527 sub->base->d.otherName->type_id) != 0)) in nc_match()
529 if (!nc_minmax_valid(sub)) in nc_match()
536 r = nc_match_single(effective_type, gen, sub->base); in nc_match()
549 sub = sk_GENERAL_SUBTREE_value(nc->excludedSubtrees, i); in nc_match()
550 if (effective_type != sub->base->type in nc_match()
553 sub->base->d.otherName->type_id) != 0)) in nc_match()
555 if (!nc_minmax_valid(sub)) in nc_match()
558 r = nc_match_single(effective_type, gen, sub->base); in nc_match()