Lines Matching defs:addrs

294 			       struct wordlist ** addrs,
1454 struct wordlist *addrs = NULL, *opts = NULL;
1472 ret = (*pap_auth_hook)(user, passwd, msg, &addrs, &opts);
1474 /* note: set_allowed_addrs() saves opts (but not addrs):
1477 set_allowed_addrs(unit, addrs, opts);
1480 if (addrs != 0)
1481 free_wordlist(addrs);
1492 addrs = opts = NULL;
1500 if (scan_authfile(f, user, our_name, secret, &addrs, &opts, filename, 0) < 0) {
1554 set_allowed_addrs(unit, addrs, opts);
1557 if (addrs != NULL)
1558 free_wordlist(addrs);
1576 struct wordlist *addrs, *opts;
1584 ret = (*null_auth_hook)(&addrs, &opts);
1591 addrs = NULL;
1597 i = scan_authfile(f, "", our_name, secret, &addrs, &opts, filename, 0);
1604 set_allowed_addrs(unit, addrs, opts);
1607 if (addrs != 0)
1608 free_wordlist(addrs);
1665 struct wordlist *addrs;
1680 NULL, &addrs, NULL, filename, 0);
1682 if (ret >= 0 && !some_ip_ok(addrs)) {
1687 if (addrs != 0)
1688 free_wordlist(addrs);
1707 struct wordlist *addrs;
1726 ret = scan_authfile(f, client, server, NULL, &addrs, NULL, filename, 0);
1728 if (ret >= 0 && need_ip && !some_ip_ok(addrs)) {
1733 if (addrs != 0)
1734 free_wordlist(addrs);
1752 struct wordlist *addrs;
1764 ret = scan_authfile(f, client, server, NULL, &addrs, NULL, filename, 0);
1766 if (ret >= 0 && need_ip && !some_ip_ok(addrs)) {
1771 if (addrs != 0)
1772 free_wordlist(addrs);
1790 struct wordlist *addrs, *opts;
1803 addrs = NULL;
1813 ret = scan_authfile(f, client, server, secbuf, &addrs, &opts, filename, 0);
1819 set_allowed_addrs(unit, addrs, opts);
1822 if (addrs != 0)
1823 free_wordlist(addrs);
1851 struct wordlist *addrs, *opts;
1857 addrs = NULL;
1867 ret = scan_authfile(fp, client, server, secret, &addrs, &opts,
1874 set_allowed_addrs(unit, addrs, opts);
1877 if (addrs != NULL)
1878 free_wordlist(addrs);
1890 set_allowed_addrs(int unit, struct wordlist *addrs,
1913 n = wordlist_count(addrs) + wordlist_count(noauth_addrs);
1920 /* temporarily append the noauth_addrs list to addrs */
1921 for (plink = &addrs; *plink != NULL; plink = &(*plink)->next)
1926 for (ap = addrs; ap != NULL; ap = ap->next) {
2069 ip_addr_check(u_int32_t addr, struct permitted_ip *addrs)
2071 for (; ; ++addrs)
2072 if ((addr & addrs->mask) == addrs->base)
2073 return addrs->permit;
2094 some_ip_ok(struct wordlist *addrs)
2096 for (; addrs != 0; addrs = addrs->next) {
2097 if (addrs->word[0] == '-')
2099 if (addrs->word[0] != '!')
2157 * info) are placed in a wordlist and returned in *addrs. Any
2166 char *secret, struct wordlist **addrs,
2179 if (addrs != NULL)
2180 *addrs = NULL;
2312 if (addrs != NULL)
2313 *addrs = addr_list;
2413 struct wordlist *addrs;
2431 cacertfile, pkfile, &addrs, NULL, filename,
2442 if (ret >= 0 && need_ip && !some_ip_ok(addrs)) {
2447 if (addrs != 0)
2448 free_wordlist(addrs);
2460 struct wordlist *addrs = NULL;
2481 cacertfile, pkfile, &addrs, NULL, filename,
2491 if (addrs != 0)
2492 free_wordlist(addrs);
2501 char *pk, struct wordlist **addrs,
2510 if (addrs != NULL)
2511 *addrs = NULL;
2644 if (addrs != NULL)
2645 *addrs = addr_list;
2661 struct wordlist *addrs = NULL;
2684 addrs = NULL;
2696 cacertfile, pkfile, &addrs, &opts, filename, 0);
2714 set_allowed_addrs(unit, addrs, opts);
2717 if (addrs != NULL)
2718 free_wordlist(addrs);