Lines Matching refs:gen
75 static int nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc);
76 static int nc_match_single(GENERAL_NAME *sub, GENERAL_NAME *gen);
286 GENERAL_NAME *gen = sk_GENERAL_NAME_value(x->altname, i); in NAME_CONSTRAINTS_check() local
287 r = nc_match(gen, nc); in NAME_CONSTRAINTS_check()
296 static int nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc) in nc_match() argument
308 if (gen->type != sub->base->type) in nc_match()
317 r = nc_match_single(gen, sub->base); in nc_match()
332 if (gen->type != sub->base->type) in nc_match()
337 r = nc_match_single(gen, sub->base); in nc_match()
349 static int nc_match_single(GENERAL_NAME *gen, GENERAL_NAME *base) in nc_match_single() argument
354 return nc_dn(gen->d.directoryName, base->d.directoryName); in nc_match_single()
357 return nc_dns(gen->d.dNSName, base->d.dNSName); in nc_match_single()
360 return nc_email(gen->d.rfc822Name, base->d.rfc822Name); in nc_match_single()
363 return nc_uri(gen->d.uniformResourceIdentifier, in nc_match_single()