Lines Matching refs:chost
65 char *pkalg, *cuser, *chost; in userauth_hostbased() local
73 (r = sshpkt_get_cstring(ssh, &chost, NULL)) != 0 || in userauth_hostbased()
79 cuser, chost, pkalg, slen); in userauth_hostbased()
137 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased()
145 "client user \"%.100s\", client host \"%.100s\"", cuser, chost); in userauth_hostbased()
150 chost, key) && in userauth_hostbased()
163 free(chost); in userauth_hostbased()
171 const char *cuser, char *chost, struct sshkey *key) in hostbased_key_allowed() argument
185 chost, resolvedname, ipaddr); in hostbased_key_allowed()
187 if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') { in hostbased_key_allowed()
188 debug2("stripping trailing dot from chost %s", chost); in hostbased_key_allowed()
189 chost[len - 1] = '\0'; in hostbased_key_allowed()
193 if (auth_rhosts2(pw, cuser, chost, chost) == 0) { in hostbased_key_allowed()
195 "host \"%.100s\" (from packet)", cuser, chost); in hostbased_key_allowed()
198 lookup = chost; in hostbased_key_allowed()
200 if (strcasecmp(resolvedname, chost) != 0) in hostbased_key_allowed()
203 chost, ipaddr, resolvedname); in hostbased_key_allowed()