Lines Matching defs:host

35  Figures out the Kerberos realm names for host, filling in a
38 If host is NULL, the local host's realms are determined.
40 If there are no known realms for the host, the filled-in pointer is set
52 * this implementation only provides one realm per host, using the same
55 * Given a fully-qualified domain-style primary host name,
56 * return the name of the Kerberos realm for the host.
68 * host names should be in the usual form (e.g. FOO.BAR.BAZ)
96 char host[MAXDNAME], *h;
105 if (strlen (prefix) >= sizeof(host)-1)
107 strcpy(host,prefix);
112 sprintf(host,"%s.%s", prefix, name);
124 h = host + strlen (host);
125 if ((h > host) && (h[-1] != '.') && ((h - host + 1) < sizeof(host)))
128 ret = krb5int_dns_init(&ds, host, C_IN, T_TXT);
186 /* Get the local host name, try to make it fully-qualified.
200 krb5_get_host_realm(krb5_context context, const char *host, char ***realmsp)
208 printf("get_host_realm(host:%s) called\n",host);
211 krb5int_clean_hostname(context, host, local_host, sizeof local_host);
214 Search for the best match for the host or domain.
215 Example: Given a host a.b.c.d, try to match on:
346 char local_host[MAXDNAME+1], host[MAXDNAME+1];
349 memcpy(host, hdata->data, hdata->length);
350 host[hdata->length]=0;
353 printf("get_fallback_host_realm(host >%s<) called\n",host);
356 krb5int_clean_hostname(context, host, local_host, sizeof local_host);
384 * of the host. Note: "local_host" here actually refers to the
385 * host and NOT necessarily the local hostnane.
420 krb5int_clean_hostname(krb5_context context, const char *host, char *local_host, size_t lhsize)
428 printf("krb5int_clean_hostname called: host<%s>, local_host<%s>, size %d\n",host,local_host,lhsize);
430 if (host) {
434 if (strspn(host, "01234567890.") == strlen(host)) {
443 for (p = host; *p; p++)
449 if (strchr(host, ':'))
453 /* Should probably error out if strlen(host) > MAXDNAME. */
454 strncpy(local_host, host, lhsize);
473 printf("krb5int_clean_hostname ending: host<%s>, local_host<%s>, size %d\n",host,local_host,lhsize);