1 /* lookup.c: The opielookup() library function.
4 This software is Copyright 1996-2001 by Craig Metz, All Rights Reserved.
5 The Inner Net License Version 3 applies to this software.
6 You should have received a copy of the license with this software. If
7 you didn't get a copy, you may request one from <license@inner.net>.
11 Created by cmetz for OPIE 2.3 (re-write).
18 int opielookup FUNCTION((opie, principal), struct opie *opie AND char *principal)
22 memset(opie, 0, sizeof(struct opie));
23 opie->opie_principal = principal;
25 if (i = __opiereadrec(opie))
28 return (opie->opie_flags & __OPIE_FLAGS_RW) ? 0 : 2;