Lines Matching refs:base
80 static int nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base);
93 ASN1_SIMPLE(GENERAL_SUBTREE, base, GENERAL_NAME),
140 if (!v2i_GENERAL_NAME_ex(sub->base, method, ctx, &tval, 1))
188 if (tree->base->type == GEN_IPADD)
189 print_nc_ipadd(bp, tree->base->d.ip);
191 GENERAL_NAME_print(bp, tree->base);
307 if (gen->type != sub->base->type)
316 r = nc_match_single(gen, sub->base);
331 if (gen->type != sub->base->type)
336 r = nc_match_single(gen, sub->base);
348 static int nc_match_single(GENERAL_NAME *gen, GENERAL_NAME *base)
350 switch(base->type)
353 return nc_dn(gen->d.directoryName, base->d.directoryName);
356 return nc_dns(gen->d.dNSName, base->d.dNSName);
359 return nc_email(gen->d.rfc822Name, base->d.rfc822Name);
363 base->d.uniformResourceIdentifier);
376 static int nc_dn(X509_NAME *nm, X509_NAME *base)
381 if (base->modified && i2d_X509_NAME(base, NULL) < 0)
383 if (base->canon_enclen > nm->canon_enclen)
385 if (memcmp(base->canon_enc, nm->canon_enc, base->canon_enclen))
390 static int nc_dns(ASN1_IA5STRING *dns, ASN1_IA5STRING *base)
392 char *baseptr = (char *)base->data;
401 if (dns->length > base->length)
403 dnsptr += dns->length - base->length;
415 static int nc_email(ASN1_IA5STRING *eml, ASN1_IA5STRING *base)
417 const char *baseptr = (char *)base->data;
427 if (eml->length > base->length)
429 emlptr += eml->length - base->length;
448 /* Position base after '@' */
460 static int nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base)
462 const char *baseptr = (char *)base->data;
491 if (hostlen > base->length)
493 p = hostptr + hostlen - base->length;
494 if (!strncasecmp(p, baseptr, base->length))
500 if ((base->length != (int)hostlen) || strncasecmp(hostptr, baseptr, hostlen))