]> andersk Git - openssh.git/blobdiff - groupaccess.h
- djm@cvs.openbsd.org 2010/01/30 02:54:53
[openssh.git] / groupaccess.h
index b4e5e42fc6342e396dd79ebb56ab7cf2a0e2852d..000578e76461df6ccbef1dcad35f3399f40ac68d 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: groupaccess.h,v 1.2 2001/01/29 01:58:15 niklas Exp $  */
+/* $OpenBSD: groupaccess.h,v 1.8 2008/07/04 03:44:59 djm Exp $ */
 
 /*
  * Copyright (c) 2001 Kevin Steves.  All rights reserved.
 #ifndef GROUPACCESS_H
 #define GROUPACCESS_H
 
-#include <grp.h>
-
-/*
- * 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);
-
-/*
- * 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 ngroups);
-
-/*
- * Free memory allocated for group access list.
- */
-void ga_free(void);
+int     ga_init(const char *, gid_t);
+int     ga_match(char * const *, int);
+int     ga_match_pattern_list(const char *);
+void    ga_free(void);
 
 #endif
This page took 0.039602 seconds and 4 git commands to generate.