Lines Matching defs:hostname
30 * Convert a hostname and service name to a principal in the "standard"
85 krb5_sname_to_principal(krb5_context context, const char *hostname, const char *sname, krb5_int32 type, krb5_principal *ret_princ)
94 printf("krb5_sname_to_principal(host=%s, sname=%s, type=%d)\n",hostname,sname,type);
100 /* if hostname is NULL, use local hostname */
101 if (! hostname) {
108 hostname = localname;
115 /* copy the hostname into non-volatile storage */
139 KRB5_LOG(KRB5_INFO, "krb5_sname_to_principal() hostname %s",
140 hostname);
144 hp = res_getipnodebyname(hostname, addr_family, 0, &err);
147 printf("sname_to_princ: probably punting due to bad hostname of %s\n",hostname);
163 hostname, strerror(err));
166 remote_host = strdup(hp ? hp->h_name : hostname);
211 remote_host = strdup(hostname);
216 printf("sname_to_princ: hostname <%s> after rdns processing\n",remote_host);
226 * trailing period to the hostname (at least it does in