Lines Matching refs:chost
64 char *pkalg, *cuser, *chost; in userauth_hostbased() local
72 (r = sshpkt_get_cstring(ssh, &chost, NULL)) != 0 || in userauth_hostbased()
78 cuser, chost, pkalg, slen); in userauth_hostbased()
136 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased()
144 "client user \"%.100s\", client host \"%.100s\"", cuser, chost); in userauth_hostbased()
149 chost, key)) && in userauth_hostbased()
162 free(chost); in userauth_hostbased()
170 const char *cuser, char *chost, struct sshkey *key) in hostbased_key_allowed() argument
184 chost, resolvedname, ipaddr); in hostbased_key_allowed()
186 if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') { in hostbased_key_allowed()
187 debug2("stripping trailing dot from chost %s", chost); in hostbased_key_allowed()
188 chost[len - 1] = '\0'; in hostbased_key_allowed()
192 if (auth_rhosts2(pw, cuser, chost, chost) == 0) { in hostbased_key_allowed()
194 "host \"%.100s\" (from packet)", cuser, chost); in hostbased_key_allowed()
197 lookup = chost; in hostbased_key_allowed()
199 if (strcasecmp(resolvedname, chost) != 0) in hostbased_key_allowed()
202 chost, ipaddr, resolvedname); in hostbased_key_allowed()