Lines Matching refs:chost
63 char *pkalg, *cuser, *chost, *service; in userauth_hostbased() local
75 chost = packet_get_string(NULL); in userauth_hostbased()
80 cuser, chost, pkalg, slen); in userauth_hostbased()
130 buffer_put_cstring(&b, chost); in userauth_hostbased()
137 "client user \"%.100s\", client host \"%.100s\"", cuser, chost); in userauth_hostbased()
141 if (PRIVSEP(hostbased_key_allowed(authctxt->pw, cuser, chost, key)) && in userauth_hostbased()
154 free(chost); in userauth_hostbased()
161 hostbased_key_allowed(struct passwd *pw, const char *cuser, char *chost, in hostbased_key_allowed() argument
176 chost, resolvedname, ipaddr); in hostbased_key_allowed()
178 if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') { in hostbased_key_allowed()
179 debug2("stripping trailing dot from chost %s", chost); in hostbased_key_allowed()
180 chost[len - 1] = '\0'; in hostbased_key_allowed()
184 if (auth_rhosts2(pw, cuser, chost, chost) == 0) { in hostbased_key_allowed()
187 __func__, cuser, chost); in hostbased_key_allowed()
190 lookup = chost; in hostbased_key_allowed()
192 if (strcasecmp(resolvedname, chost) != 0) in hostbased_key_allowed()
195 chost, ipaddr, resolvedname); in hostbased_key_allowed()