Lines Matching defs:chost
63 char *pkalg, *cuser, *chost, *service;
75 chost = packet_get_string(NULL);
79 debug("userauth_hostbased: cuser %s chost %s pkalg %s slen %d",
80 cuser, chost, pkalg, slen);
129 buffer_put_cstring(&b, chost);
136 "client user \"%.100s\", client host \"%.100s\"", cuser, chost);
140 if (PRIVSEP(hostbased_key_allowed(authctxt->pw, cuser, chost, key)) &&
153 free(chost);
160 hostbased_key_allowed(struct passwd *pw, const char *cuser, char *chost,
175 debug2("%s: chost %s resolvedname %s ipaddr %s", __func__,
176 chost, resolvedname, ipaddr);
178 if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') {
179 debug2("stripping trailing dot from chost %s", chost);
180 chost[len - 1] = '\0';
184 if (auth_rhosts2(pw, cuser, chost, chost) == 0) {
187 __func__, cuser, chost);
190 lookup = chost;
192 if (strcasecmp(resolvedname, chost) != 0)
195 chost, ipaddr, resolvedname);