globus_connect_gridftp_server 16.16~rc1
Loading...
Searching...
No Matches
/build/globus-connect-gridftp-server-16.16~rc1/globus_connect_gridftp_server_utils.h
1/*
2 * Copyright The University of Chicago
3 *
4 * All Rights Reserved.
5 */
6
7#ifndef GLOBUS_CONNECT_GRIDFTP_SERVER_UTILS_H
8#define GLOBUS_CONNECT_GRIDFTP_SERVER_UTILS_H
9
10#ifdef WIN32
11#define gid_t int
12#else
13#include <grp.h>
14#endif
15
16#include <stdbool.h>
17#include <sys/types.h>
18
19bool
20globus_gfs_check_user_allowed(
21 const char *match_user,
22 gid_t gid,
23 int gid_array[],
24 int gid_count,
25 const char *user_allow,
26 const char *user_deny,
27 const char *group_allow,
28 const char *group_deny);
29
30bool
31globus_gfs_check_user_allowed_json(
32 const char *match_user,
33 int gid,
34 int gid_array[],
35 int gid_count,
36 const char *storage_policies_string);
37
38#endif /* GLOBUS_CONNECT_GRIDFTP_SERVER_UTILS_H */