Lines Matching refs:gen
36 static int nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc);
37 static int nc_match_single(int effective_type, GENERAL_NAME *gen,
332 GENERAL_NAME *gen = sk_GENERAL_NAME_value(x->altname, i); in NAME_CONSTRAINTS_check() local
333 r = nc_match(gen, nc); in NAME_CONSTRAINTS_check()
501 static int nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc) in nc_match() argument
505 int effective_type = gen->type; in nc_match()
513 (OBJ_obj2nid(gen->d.otherName->type_id) == NID_id_on_SmtpUTF8Mailbox)) { in nc_match()
526 OBJ_cmp(gen->d.otherName->type_id, in nc_match()
536 r = nc_match_single(effective_type, gen, sub->base); in nc_match()
552 OBJ_cmp(gen->d.otherName->type_id, in nc_match()
558 r = nc_match_single(effective_type, gen, sub->base); in nc_match()
570 static int nc_match_single(int effective_type, GENERAL_NAME *gen, in nc_match_single() argument
573 switch (gen->type) { in nc_match_single()
581 return nc_email_eai(gen->d.otherName->value, base->d.rfc822Name); in nc_match_single()
588 return nc_dn(gen->d.directoryName, base->d.directoryName); in nc_match_single()
591 return nc_dns(gen->d.dNSName, base->d.dNSName); in nc_match_single()
594 return nc_email(gen->d.rfc822Name, base->d.rfc822Name); in nc_match_single()
597 return nc_uri(gen->d.uniformResourceIdentifier, in nc_match_single()
601 return nc_ip(gen->d.iPAddress, base->d.iPAddress); in nc_match_single()