Lines Matching refs:chost
61 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 "client user \"%.100s\", client host \"%.100s\"", cuser, chost);
125 if (PRIVSEP(hostbased_key_allowed(authctxt->pw, cuser, chost, key)) &&
138 free(chost);
145 hostbased_key_allowed(struct passwd *pw, const char *cuser, char *chost,
159 debug2("userauth_hostbased: chost %s resolvedname %s ipaddr %s",
160 chost, resolvedname, ipaddr);
162 if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') {
163 debug2("stripping trailing dot from chost %s", chost);
164 chost[len - 1] = '\0';
168 if (auth_rhosts2(pw, cuser, chost, chost) == 0)
170 lookup = chost;
172 if (strcasecmp(resolvedname, chost) != 0)
175 chost, ipaddr, resolvedname);