Lines Matching refs:hostname

139 	    strlcpy(hi->hostname, rr->u.srv->target, len + 1);  in srv_find_realm()
233 memcpy(hi->hostname, &p[1], q - p - 1); in parse_hostspec()
234 hi->hostname[q - p - 1] = '\0'; in parse_hostspec()
239 } else if(strsep_copy(&p, ":", hi->hostname, strlen(spec) + 1) < 0) { in parse_hostspec()
245 hi->hostname[strcspn(hi->hostname, "/")] = '\0'; in parse_hostspec()
246 strlwr(hi->hostname); in parse_hostspec()
275 size_t hostnamelen = strlen(from->hostname); in _krb5_krbhost_info_move()
290 memcpy((*to)->hostname, from->hostname, hostnamelen + 1); in _krb5_krbhost_info_move()
303 strcmp(h->hostname, host->hostname) == 0) { in append_host_hostinfo()
331 char *hostname, size_t hostlen) in krb5_krbhst_format_string() argument
341 snprintf(hostname, hostlen, "%s%s%s", proto, host->hostname, portstr); in krb5_krbhst_format_string()
384 char *hostname = host->hostname; in krb5_krbhst_get_addrinfo() local
396 ret = getaddrinfo(host->hostname, portstr, &hints, &host->ai); in krb5_krbhst_get_addrinfo()
408 if (strchr(hostname, '.') && hostname[strlen(hostname) - 1] != '.') { in krb5_krbhst_get_addrinfo()
409 ret = asprintf(&hostname, "%s.", host->hostname); in krb5_krbhst_get_addrinfo()
410 if (ret < 0 || hostname == NULL) in krb5_krbhst_get_addrinfo()
414 ret = getaddrinfo(hostname, portstr, &hints, &host->ai); in krb5_krbhst_get_addrinfo()
415 if (hostname != host->hostname) in krb5_krbhst_get_addrinfo()
416 free(hostname); in krb5_krbhst_get_addrinfo()
542 memmove(hi->hostname, host, hostlen); in fallback_get_hosts()
543 hi->hostname[hostlen] = '\0'; in fallback_get_hosts()
587 memmove(hi->hostname, host, hostlen); in add_locate()
588 hi->hostname[hostlen] = '\0'; in add_locate()
985 char *hostname, in krb5_krbhst_next_as_string() argument
993 return krb5_krbhst_format_string(context, host, hostname, hostlen); in krb5_krbhst_next_as_string()