=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/groupaccess.h,v retrieving revision 1.2.6.2 retrieving revision 1.3 diff -u -r1.2.6.2 -r1.3 --- src/usr.bin/ssh/groupaccess.h 2002/03/09 00:20:44 1.2.6.2 +++ src/usr.bin/ssh/groupaccess.h 2001/06/26 06:32:52 1.3 @@ -1,4 +1,4 @@ -/* $OpenBSD: groupaccess.h,v 1.2.6.2 2002/03/09 00:20:44 miod Exp $ */ +/* $OpenBSD: groupaccess.h,v 1.3 2001/06/26 06:32:52 itojun Exp $ */ /* * Copyright (c) 2001 Kevin Steves. All rights reserved. @@ -29,8 +29,21 @@ #include -int ga_init(const char *, gid_t); -int ga_match(char * const *, int); -void ga_free(void); +/* + * 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 *, gid_t); + +/* + * 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 *, int); + +/* + * Free memory allocated for group access list. + */ +void ga_free(void); #endif