=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/groupaccess.c,v retrieving revision 1.3.2.4 retrieving revision 1.3.2.5 diff -u -r1.3.2.4 -r1.3.2.5 --- src/usr.bin/ssh/groupaccess.c 2001/05/07 21:09:29 1.3.2.4 +++ src/usr.bin/ssh/groupaccess.c 2001/09/27 00:15:42 1.3.2.5 @@ -1,4 +1,4 @@ -/* $OpenBSD: groupaccess.c,v 1.3.2.4 2001/05/07 21:09:29 jason Exp $ */ +/* $OpenBSD: groupaccess.c,v 1.3.2.5 2001/09/27 00:15:42 miod Exp $ */ /* * Copyright (c) 2001 Kevin Steves. All rights reserved. @@ -34,6 +34,10 @@ static int ngroups; static char *groups_byname[NGROUPS_MAX + 1]; /* +1 for base/primary group */ +/* + * Initialize group access list for user with primary (base) and + * supplementary groups. Return the number of groups in the list. + */ int ga_init(const char *user, gid_t base) { @@ -53,6 +57,10 @@ return (ngroups = j); } +/* + * Return 1 if one of user's groups is contained in groups. + * Return 0 otherwise. Use match_pattern() for string comparison. + */ int ga_match(char * const *groups, int n) { @@ -65,6 +73,9 @@ return 0; } +/* + * Free memory allocated for group access list. + */ void ga_free(void) {