Grid Community Toolkit  6.2.1629922860 (tag: v6.2.20210826)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
oldgaa_policy_evaluator.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 /**********************************************************************
18  oldgaa_policy_evaluator.h:
19 
20 Description:
21  This header file used internally by the oldgaa routines
22 **********************************************************************/
23 #ifndef _OLDGAA_POLICY_EVALUATOR_H
24 #define _OLDGAA_POLICY_EVALUATOR_H
25 
26 /**********************************************************************
27  Include header files
28 **********************************************************************/
29 
30 #include <stdio.h> /* for FILE */
31 
32 /**********************************************************************
33  Define constants
34 **********************************************************************/
35 
36 void
37 oldgaa_handle_error(char **errstring,
38  const char * const message);
39 
40 oldgaa_policy_ptr
41 oldgaa_find_matching_entry(uint32 *minor_status,
42  oldgaa_principals_ptr ptr,
43  oldgaa_policy_ptr policy);
44 
45 oldgaa_error_code
46 oldgaa_check_access_rights(oldgaa_sec_context_ptr sc,
47  oldgaa_rights_ptr requested_rights,
48  oldgaa_rights_ptr rights,
49  oldgaa_answer_ptr detailed_answer,
50  oldgaa_options_ptr options);
51 
52 
53 oldgaa_error_code
54 oldgaa_get_authorized_principals(oldgaa_sec_attrb_ptr *attributes,
55  oldgaa_policy_ptr policy,
56  oldgaa_principals_ptr principal,
57  oldgaa_rights_ptr rights);
58 
59 /**********************************************************************
60  Condition Evaluation Functions
61  **********************************************************************/
62 
63 oldgaa_error_code
64 oldgaa_evaluate_regex_cond(oldgaa_conditions_ptr condition,
65  oldgaa_options_ptr options);
66 
67 oldgaa_error_code
68 oldgaa_evaluate_conditions(oldgaa_sec_context_ptr sc,
69  oldgaa_cond_bindings_ptr conditions,
70  oldgaa_options_ptr options);
71 
72 oldgaa_error_code
73 oldgaa_evaluate_day_cond(oldgaa_conditions_ptr condition,
74  oldgaa_options_ptr options);
75 
76 oldgaa_error_code
77 oldgaa_evaluate_time_cond(oldgaa_conditions_ptr condition,
78  oldgaa_options_ptr options);
79 
80 oldgaa_error_code
81 oldgaa_evaluate_sech_mech_cond(oldgaa_principals_ptr principal,
82  oldgaa_conditions_ptr condition,
83  oldgaa_options_ptr options);
84 
85 
86 
87 #endif /* _OLDGAA_POLICY_EVALUATOR_H */