Lines Matching refs:chost
65 char *pkalg, *cuser, *chost;
73 (r = sshpkt_get_cstring(ssh, &chost, NULL)) != 0 ||
78 debug("%s: cuser %s chost %s pkalg %s slen %zu", __func__,
79 cuser, chost, pkalg, slen);
138 (r = sshbuf_put_cstring(b, chost)) != 0 ||
146 "client user \"%.100s\", client host \"%.100s\"", cuser, chost);
150 if (PRIVSEP(hostbased_key_allowed(authctxt->pw, cuser, chost, key)) &&
163 free(chost);
170 hostbased_key_allowed(struct passwd *pw, const char *cuser, char *chost,
185 debug2("%s: chost %s resolvedname %s ipaddr %s", __func__,
186 chost, resolvedname, ipaddr);
188 if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') {
189 debug2("stripping trailing dot from chost %s", chost);
190 chost[len - 1] = '\0';
194 if (auth_rhosts2(pw, cuser, chost, chost) == 0) {
197 __func__, cuser, chost);
200 lookup = chost;
202 if (strcasecmp(resolvedname, chost) != 0)
205 chost, ipaddr, resolvedname);