Lines Matching defs:hostname
31 * Convert a hostname and service name to a principal in the "standard"
106 krb5_sname_to_principal(krb5_context context, const char *hostname, const char *sname, krb5_int32 type, krb5_principal *ret_princ)
113 printf("krb5_sname_to_principal(host=%s, sname=%s, type=%d)\n",hostname,sname,type);
120 /* if hostname is NULL, use local hostname */
121 if (! hostname) {
125 hostname = localname;
132 /* copy the hostname into non-volatile storage */
159 hp = res_getipnodebyname(hostname, addr_family, 0, &err);
162 printf("sname_to_princ: probably punting due to bad hostname of %s\n",hostname);
173 hostname, get_host_error(err));
176 remote_host = strdup(hp ? hp->h_name : hostname);
219 remote_host = strdup(hostname);
224 printf("sname_to_princ: hostname <%s> after rdns processing\n",remote_host);
234 * trailing period to the hostname (at least it does in