Lines Matching refs:tok
29 @@ -637,7 +637,7 @@ remote_match (pam_handle_t *pamh, char *tok, struct login_info *item)
31 && strcasecmp(tok, string + str_len - tok_len) == 0)
33 - } else if (tok[tok_len - 1] == '.') {
34 + } else if (tok[tok_len - 1] == '.') { /* internet network numbers (end with ".") */
38 @@ -678,7 +678,7 @@ remote_match (pam_handle_t *pamh, char *tok, struct login_info *item)
44 return network_netmask_match(pamh, tok, string, item);
47 @@ -696,7 +696,7 @@ string_match (pam_handle_t *pamh, const char *tok, const char *string,
55 if (strcasecmp(tok, "ALL") == 0) { /* all: always matches */
56 @@ -714,7 +714,8 @@ string_match (pam_handle_t *pamh, const char *tok, const char *string,
59 * where string is a hostname or ip (v4,v6) address and tok
75 "network_netmask_match: tok=%s, item=%s", tok, string);
77 /* OK, check if tok is of type addr/mask */
78 if ((netmask_ptr = strchr(tok, '/')) != NULL)
90 + if (getaddrinfo (tok, NULL, NULL, &ai) != 0)
97 - if (isipaddr(tok, NULL, NULL) != YES)
103 + if (getaddrinfo (tok, NULL, NULL, &ai) != 0)
105 + pam_syslog(pamh, LOG_ERR, "cannot resolve hostname \"%s\"", tok);
155 - if (are_addresses_equal(buf, tok, netmask_ptr))
181 - return (are_addresses_equal(string, tok, netmask_ptr));