Lines Matching refs:cp
203 char *realm, *cp, *temp_realm;
225 cp = local_host;
231 while (cp) {
233 printf(" trying to look up %s in the domain_realm map\n",cp);
235 retval = profile_get_string(context->profile, "domain_realm", cp,
243 if (*cp == '.') {
244 cp++;
246 cp = strchr(cp, '.');
266 if (!(cp = (char *)malloc(strlen(KRB5_REFERRAL_REALM)+1)))
268 strcpy(cp, KRB5_REFERRAL_REALM);
269 realm = cp;
344 char *realm = (char *)NULL, *cp;
371 cp = local_host;
373 retval = krb5_try_realm_txt_rr("_kerberos", cp, &realm);
374 cp = strchr(cp,'.');
375 if (cp)
376 cp++;
377 } while (retval && cp && cp[0]);
422 char *cp;
463 for (cp = local_host; *cp; cp++) {
464 if (isupper((unsigned char) (*cp)))
465 *cp = tolower((unsigned char) *cp);
490 char *cp = NULL;
502 for (cp = fqdn; *cp; cp++)
503 if (islower((int)(*cp)))
504 *cp = toupper((int)*cp);
506 cp = fqdn;
507 while (strchr(cp, '.') != NULL) {
509 drealm.length = strlen(cp);
510 drealm.data = cp;
517 if (!(*realm = malloc(strlen(cp) + 1))) {
521 strlcpy(*realm, cp, strlen(cp) + 1);
525 cp = strchr(cp, '.');
526 cp++;