Lines Matching refs:rhost
319 extern int ruserok(const char *rhost, int superuser, const char *ruser, const char *luser)
330 sp = rhost;
335 baselen = sp - rhost;
380 _validuser(FILE *hostf, const char *rhost, const char *luser,
430 && _checkhost(rhost, &ahost[1], baselen))
434 && _checknetgrouphost(rhost, &ahost[2], baselen))
446 hostvalid = _checknetgrouphost(rhost, &ahost[2], baselen);
448 hostvalid = _checkhost(rhost, ahost, baselen);
459 hostvalid = hostvalid ? 1 : _checkhost(rhost, ahost, baselen);
471 _checkhost(const char *rhost, const char *lhost, int len)
479 return(!strcmp(rhost, lhost));
480 if (strncmp(rhost, lhost, len))
482 if (!strcmp(rhost, lhost))
502 return(!strcmp(domainp, rhost + len +1));
507 _checknetgrouphost(const char *rhost, const char *netgr, int baselen)
530 if(1 == _checkhost(rhost, host, baselen))