Lines Matching refs:chost
62 char *pkalg, *cuser, *chost, *service; in userauth_hostbased() local
73 chost = packet_get_string(NULL); in userauth_hostbased()
78 cuser, chost, pkalg, slen); in userauth_hostbased()
114 buffer_put_cstring(&b, chost); in userauth_hostbased()
121 if (hostbased_key_allowed(authctxt->pw, cuser, chost, key) && in userauth_hostbased()
155 xfree(chost); in userauth_hostbased()
162 hostbased_key_allowed(struct passwd *pw, const char *cuser, char *chost, in hostbased_key_allowed() argument
173 chost, resolvedname, ipaddr); in hostbased_key_allowed()
179 if (auth_rhosts2(pw, cuser, chost, chost) == 0) in hostbased_key_allowed()
181 lookup = chost; in hostbased_key_allowed()
183 if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') { in hostbased_key_allowed()
184 debug2("stripping trailing dot from chost %s", chost); in hostbased_key_allowed()
185 chost[len - 1] = '\0'; in hostbased_key_allowed()
187 if (strcasecmp(resolvedname, chost) != 0) in hostbased_key_allowed()
190 chost, ipaddr, resolvedname); in hostbased_key_allowed()