Lines Matching refs:chost
62 char *pkalg, *cuser, *chost, *service;
73 chost = packet_get_string(NULL);
77 debug("userauth_hostbased: cuser %s chost %s pkalg %s slen %d",
78 cuser, chost, pkalg, slen);
114 buffer_put_cstring(&b, chost);
121 if (hostbased_key_allowed(authctxt->pw, cuser, chost, key) &&
155 xfree(chost);
162 hostbased_key_allowed(struct passwd *pw, const char *cuser, char *chost,
172 debug2("userauth_hostbased: chost %s resolvedname %s ipaddr %s",
173 chost, resolvedname, ipaddr);
179 if (auth_rhosts2(pw, cuser, chost, chost) == 0)
181 lookup = chost;
183 if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') {
184 debug2("stripping trailing dot from chost %s", chost);
185 chost[len - 1] = '\0';
187 if (strcasecmp(resolvedname, chost) != 0)
190 chost, ipaddr, resolvedname);