#include <krb.h>
#endif
-
-#define IP_WILDCARDS 1 /* XXX Should be defined outside of here XXX */
-
extern int restricted;
extern struct ubik_dbase *dbase;
extern int pr_noAuth;
afs_int32 *lastP, afs_int32 *cid);
static afs_int32 isAMemberOf(struct rx_call *call, afs_int32 uid, afs_int32 gid,
afs_int32 *flag, afs_int32 *cid);
-#if IP_WILDCARDS
static afs_int32 addWildCards(struct ubik_trans *tt, prlist *alist,
afs_uint32 host);
-#endif
static afs_int32 WhoIsThisWithName(struct rx_call *acall,
struct ubik_trans *at, afs_int32 *aid,
char *aname);
}
-#ifdef IP_WILDCARDS
int
inCPS(prlist CPS, afs_int32 id)
{
}
return (0);
}
-#endif /* IP_WILDCARDS */
afs_int32
code = GetList2(tt, &tentry, &host_tentry, alist, 1);
else
code = GetList(tt, &tentry, alist, 1);
-#if IP_WILDCARDS
if (!code)
code = addWildCards(tt, alist, ntohl(ahost));
-#endif /* IP_WILDCARDS */
if (code != PRSUCCESS)
ABORT_WITH(tt, code);
} else
fprintf(stderr, "FindByID Failed -- Not found\n");
}
-#if IP_WILDCARDS
code = addWildCards(tt, alist, ntohl(ahost));
-#endif /* IP_WILDCARDS */
bad:
if (code != PRSUCCESS)
ABORT_WITH(tt, code);
return code;
}
-#if IP_WILDCARDS
static afs_int32
addWildCards(struct ubik_trans *tt, prlist *alist, afs_uint32 host)
{
qsort(alist->prlist_val, alist->prlist_len, sizeof(afs_int32), IDCmp);
return 0;
}
-#endif /* IP_WILDCARDS */
static afs_int32
WhoIsThisWithName(struct rx_call *acall, struct ubik_trans *at, afs_int32 *aid,