Lines Matching defs:rhost
79 static int _validuser(FILE *hostf, char *rhost, const char *luser,
81 static int _checkhost(char *rhost, char *lhost, int len);
554 ruserok(const char *rhost, int superuser, const char *ruser, const char *luser)
571 sp = rhost;
576 baselen = (int)(sp - rhost);
653 _validuser(FILE *hostf, char *rhost, const char *luser,
716 hostmatch = innetgr(uchost + 2, rhost,
719 hostmatch = innetgr(ahost + 2, rhost,
723 if (innetgr(uchost + 2, rhost, NULL, domain))
726 if (innetgr(ahost + 2, rhost, NULL, domain))
732 if (_checkhost(rhost, ahost+1, baselen))
736 hostmatch = _checkhost(rhost, ahost, baselen);
771 _checkhost(char *rhost, char *lhost, int len)
785 return (strcmp(rhost, lhost) == 0);
786 if (strncmp(rhost, lhost, len))
788 if (strcmp(rhost, lhost) == 0)
814 return (strcmp(domainp, rhost + len + 1) == 0);