Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef HEADER_GACL_H
00037 #define HEADER_GACL_H
00038 #endif
00039
00040 #ifndef GACL_LIB_VERSION
00041 #define GACL_LIB_VERSION "x.x.x"
00042 #endif
00043
00044 typedef GRSTgaclCred GACLcred;
00045
00046 typedef int GACLaction;
00047 typedef unsigned int GACLperm;
00048
00049 typedef GRSTgaclEntry GACLentry;
00050
00051 typedef GRSTgaclAcl GACLacl;
00052
00053 typedef GRSTgaclUser GACLuser;
00054
00055 extern char *gacl_perm_syms[];
00056 extern GACLperm gacl_perm_vals[];
00057
00058 #define GACL_PERM_NONE GRST_PERM_NONE
00059 #define GACL_PERM_READ GRST_PERM_READ
00060 #define GACL_PERM_LIST GRST_PERM_LIST
00061 #define GACL_PERM_WRITE GRST_PERM_WRITE
00062 #define GACL_PERM_ADMIN GRST_PERM_ADMIN
00063
00064 #define GACLhasNone(perm) (perm == 0)
00065 #define GACLhasRead(perm) ((perm & GRST_PERM_READ) != 0)
00066 #define GACLhasList(perm) ((perm & GRST_PERM_LIST) != 0)
00067 #define GACLhasWrite(perm) ((perm & GRST_PERM_WRITE) != 0)
00068 #define GACLhasAdmin(perm) ((perm & GRST_PERM_ADMIN) != 0)
00069
00070 #define GACL_ACTION_ALLOW GRST_ACTION_ALLOW
00071 #define GACL_ACTION_DENY GRST_ACTION_DENY
00072
00073 #define GACL_ACL_FILE GRST_ACL_FILE
00074 #define GACL_DN_LISTS GRST_DN_LISTS
00075
00076 #define GACLinit() GRSTgaclInit()
00077
00078 #define GACLnewCred(x) GRSTgaclCredNew((x))
00079
00080
00081 #define GACLaddToCred(x,y,z) GRSTgaclCredAddValue((x),(y),(z))
00082
00083
00084 #define GACLfreeCred(x) GRSTgaclCredFree((x))
00085
00086
00087 #define GACLaddCred(x,y) GRSTgaclEntryAddCred((x),(y))
00088
00089
00090 #define GACLdelCred(x,y) GRSTgaclEntryDelCred((x),(y))
00091
00092
00093 #define GACLprintCred(x,y) GRSTgaclCredPrint((x),(y))
00094
00095
00096
00097 #define GACLnewEntry() GRSTgaclEntryNew()
00098
00099
00100 #define GACLfreeEntry(x) GRSTgaclEntryFree((x))
00101
00102
00103 #define GACLaddEntry(x,y) GRSTgaclAclAddEntry((x),(y))
00104
00105
00106 #define GACLprintEntry(x,y) GRSTgaclEntryPrint((x),(y))
00107
00108
00109
00110 #define GACLprintPerm(x,y) GRSTgaclPermPrint((x),(y))
00111
00112
00113 #define GACLallowPerm(x,y) GRSTgaclEntryAllowPerm((x),(y))
00114
00115
00116 #define GACLunallowPerm(x,y) GRSTgaclEntryUnallowPerm((x),(y))
00117
00118
00119 #define GACLdenyPerm(x,y) GRSTgaclEntryDenyPerm((x),(y))
00120
00121
00122 #define GACLundenyPerm(x,y) GRSTgaclEntryUndenyPerm((x),(y))
00123
00124
00125 #define GACLpermToChar(x) GRSTgaclPermToChar((x))
00126
00127
00128 #define GACLcharToPerm(x) GRSTgaclPermFromChar((x))
00129
00130
00131 #define GACLnewAcl() GRSTgaclAclNew()
00132
00133
00134 #define GACLfreeAcl(x) GRSTgaclAclFree((x))
00135
00136
00137 #define GACLprintAcl(x,y) GRSTgaclAclPrint((x),(y))
00138
00139
00140 #define GACLsaveAcl(x,y) GRSTgaclAclSave((y),(x))
00141
00142
00143 #define GACLloadAcl(x) GRSTgaclAclLoadFile((x))
00144
00145
00146 #define GACLfindAclForFile(x) GRSTgaclFileFindAclname((x))
00147
00148
00149 #define GACLloadAclForFile(x) GRSTgaclAclLoadforFile((x))
00150
00151
00152 #define GACLisAclFile(x) GRSTgaclFileIsAcl((x))
00153
00154
00155
00156 #define GACLnewUser(x) GRSTgaclUserNew((x))
00157
00158
00159 #define GACLfreeUser(x) GRSTgaclUserFree((x))
00160
00161
00162 #define GACLuserAddCred(x,y) GRSTgaclUserAddCred((x),(y))
00163
00164
00165 #define GACLuserHasCred(x,y) GRSTgaclUserHasCred((x),(y))
00166
00167
00168 #define GACLuserFindCredType(x,y) GRSTgaclUserFindCredtype((x),(y))
00169
00170
00171 #define GACLtestDnList(x,y) GRSTgaclDNlistHasUser((x),(y))
00172
00173
00174 #define GACLtestUserAcl(x,y) GRSTgaclAclTestUser((x),(y))
00175
00176
00177 #define GACLtestExclAcl(x,y) GRSTgaclAclTestexclUser((x),(y))
00178
00179
00180
00181 #define GACLurlEncode(x) GRSThttpUrlEncode((x))
00182
00183
00184 #define GACLmildUrlEncode(x) GRSThttpUrlMildencode((x))
00185
00186
00187 GACLentry *GRSTgaclEntryParse(xmlNodePtr cur);
00188