Grid Community Toolkit  6.2.1653033972 (tag: v6.2.20220524)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
globus_i_gfs_acl.h
1 /*
2  * Copyright 1999-2006 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef GLOBUS_I_GFS_ACL_H
18 #define GLOBUS_I_GFS_ACL_H
19 
20 struct globus_i_gfs_acl_handle_s;
21 
22 typedef enum globus_l_gfs_acl_type_e
23 {
24  GLOBUS_L_GFS_ACL_TYPE_INIT,
25  GLOBUS_L_GFS_ACL_TYPE_AUTHORIZE
26 } globus_i_gfs_acl_type_t;
27 
28 typedef void
29 (*globus_gfs_acl_cb_t)(
30  globus_gfs_acl_object_desc_t * object,
31  globus_gfs_acl_action_t action,
32  void * user_arg,
33  globus_result_t result);
34 
35 void
36 globus_gfs_acl_add_module(
37  globus_gfs_acl_module_t * module);
38 
39 int
40 globus_gfs_acl_authorize(
41  struct globus_i_gfs_acl_handle_s * acl_handle,
42  globus_gfs_acl_action_t action,
43  globus_gfs_acl_object_desc_t * object,
44  globus_result_t * out_res,
45  globus_gfs_acl_cb_t cb,
46  void * user_arg);
47 
48 int
49 globus_i_gfs_acl_init(
50  struct globus_i_gfs_acl_handle_s * acl_handle,
51  const gss_ctx_id_t context,
52  const char * subject,
53  const char * username,
54  const char * password,
55  const char * ipaddr,
56  globus_result_t * out_res,
57  globus_gfs_acl_cb_t cb,
58  void * user_arg);
59 
60 void
61 globus_i_gfs_acl_destroy(
62  struct globus_i_gfs_acl_handle_s * acl_handle);
63 
64 void
65 globus_gfs_acl_audit(
66  struct globus_i_gfs_acl_handle_s * acl_handle,
67  globus_gfs_acl_action_t action,
68  globus_gfs_acl_object_desc_t * object,
69  const char * msg);
70 
71 typedef struct globus_i_gfs_acl_handle_s
72 {
73  char * password;
74  char * ipaddr;
75  globus_i_gfs_acl_type_t type;
76  char * subject;
77  char * username;
78  char * hostname;
79  globus_gfs_acl_cb_t cb;
80  void * user_arg;
81  globus_list_t * module_list;
82  globus_list_t * current_list;
83  globus_result_t cached_res;
84  gss_ctx_id_t context;
85  globus_gfs_acl_action_t auth_action;
86  globus_gfs_acl_object_desc_t auth_object;
87  globus_gfs_acl_info_t acl_info;
88 } globus_i_gfs_acl_handle_t;
89 
90 
91 
92 #endif
List data type.
Definition: globus_list.h:44
uint32_t globus_result_t
Definition: globus_types.h:99