24 #ifndef OLDGAA_UTILS_H
25 #define OLDGAA_UTILS_H
26 #define MAX_STRING_SIZE 1024
28 #define WHITESPACE ' '
42 oldgaa_strings_match(
const char *string1,
45 oldgaa_strcopy(
const char *s,
char *r);
52 oldgaa_compare_principals(oldgaa_principals_ptr element, oldgaa_principals_ptr
new);
55 oldgaa_compare_rights(oldgaa_rights_ptr element, oldgaa_rights_ptr
new);
58 oldgaa_compare_conditions(oldgaa_conditions_ptr element, oldgaa_conditions_ptr
new);
61 oldgaa_compare_sec_attrbs(oldgaa_sec_attrb_ptr element,
62 oldgaa_sec_attrb_ptr
new);
69 oldgaa_add_principal(oldgaa_policy_ptr *list, oldgaa_principals_ptr
new);
72 oldgaa_add_rights(oldgaa_rights_ptr *list, oldgaa_rights_ptr
new);
74 oldgaa_cond_bindings_ptr
75 oldgaa_add_cond_binding(oldgaa_cond_bindings_ptr* list, oldgaa_cond_bindings_ptr
new);
78 oldgaa_add_condition(oldgaa_conditions_ptr* list, oldgaa_conditions_ptr
new);
81 oldgaa_add_attribute(oldgaa_sec_attrb_ptr *list, oldgaa_sec_attrb_ptr
new);
88 oldgaa_bind_rights_to_principals(oldgaa_principals_ptr start, oldgaa_rights_ptr rights);
91 oldgaa_bind_rights_to_conditions(oldgaa_rights_ptr start, oldgaa_cond_bindings_ptr cond_bind);
99 oldgaa_check_reg_expr(
char *reg_expr,
100 char **reg_expr_list);
102 oldgaa_regex_matches_string(
const char *
const string,
103 const char *
const regex);
106 oldgaa_parse_regex(
char * str);