| 1 |
/** BEGIN COPYRIGHT BLOCK |
| 2 |
* Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. |
| 3 |
* Copyright (C) 2005 Red Hat, Inc. |
| 4 |
* All rights reserved. |
| 5 |
* |
| 6 |
* License: GPL (version 3 or any later version). |
| 7 |
* See LICENSE for details. |
| 8 |
* END COPYRIGHT BLOCK **/ |
| 9 |
|
| 10 |
#ifdef HAVE_CONFIG_H |
| 11 |
#include <config.h> |
| 12 |
#endif |
| 13 |
|
| 14 |
#ifndef PUBLIC_NSACL_ACLAPI_H |
| 15 |
#define PUBLIC_NSACL_ACLAPI_H |
| 16 |
|
| 17 |
/* |
| 18 |
* File: aclapi.h |
| 19 |
* |
| 20 |
* Description: |
| 21 |
* |
| 22 |
* This file defines the functions available in the ACL API. |
| 23 |
*/ |
| 24 |
|
| 25 |
#ifndef PUBLIC_NSACL_NSERRDEF_H |
| 26 |
#include "nserrdef.h" |
| 27 |
#endif /* !PUBLIC_NSACL_NSERRDEF_H */ |
| 28 |
|
| 29 |
#ifndef PUBLIC_NSAPI_H |
| 30 |
#include "public/nsapi.h" |
| 31 |
#endif /* !PUBLIC_NSAPI_H */ |
| 32 |
|
| 33 |
#ifndef PUBLIC_NSACL_PLISTDEF_H |
| 34 |
#include "plistdef.h" |
| 35 |
#endif /* !PUBLIC_NSACL_PLISTDEF_H */ |
| 36 |
|
| 37 |
#ifndef PUBLIC_NSACL_ACLDEF_H |
| 38 |
#include "acldef.h" |
| 39 |
#endif /* !PUBLIC_NSACL_ACLDEF_H */ |
| 40 |
|
| 41 |
NSPR_BEGIN_EXTERN_C |
| 42 |
|
| 43 |
typedef struct ACLDispatchVector ACLDispatchVector_t; |
| 44 |
struct ACLDispatchVector |
| 45 |
{ |
| 46 |
|
| 47 |
/* Error frame stack support */ |
| 48 |
|
| 49 |
void (*f_nserrDispose)(NSErr_t *errp); |
| 50 |
NSEFrame_t *(*f_nserrFAlloc)(NSErr_t *errp); |
| 51 |
void (*f_nserrFFree)(NSErr_t *errp, NSEFrame_t *efp); |
| 52 |
NSEFrame_t *(*f_nserrGenerate)(NSErr_t *errp, long retcode, long errorid, const char *program, int errc, ...); |
| 53 |
|
| 54 |
/* Property list support |
| 55 |
* The Property List facility makes extensive use of pointers to |
| 56 |
* opaque structures. As such, PLists cannot be marshalled. WAI-style |
| 57 |
* ACL APIs in future releases will therefore not be using PLists. |
| 58 |
* However the C API documented here may continue to be supported |
| 59 |
* in future releases. |
| 60 |
*/ |
| 61 |
|
| 62 |
int (*f_PListAssignValue)(PList_t plist, const char *pname, const void *pvalue, PList_t ptype); |
| 63 |
PList_t (*f_PListCreate)(pool_handle_t *mempool, |
| 64 |
int resvprop, |
| 65 |
int maxprop, |
| 66 |
int flags); |
| 67 |
int (*f_PListDefProp)(PList_t plist, int pindex, const char *pname, const int flags); |
| 68 |
const void *(*f_PListDeleteProp)(PList_t plist, int pindex, const char *pname); |
| 69 |
int (*f_PListFindValue)(PList_t plist, |
| 70 |
const char *pname, |
| 71 |
void **pvalue, |
| 72 |
PList_t *type); |
| 73 |
int (*f_PListInitProp)(PList_t plist, int pindex, const char *pname, const void *pvalue, PList_t ptype); |
| 74 |
PList_t (*f_PListNew)(pool_handle_t *mempool); |
| 75 |
void (*f_PListDestroy)(PList_t plist); |
| 76 |
int (*f_PListGetValue)(PList_t plist, |
| 77 |
int pindex, |
| 78 |
void **pvalue, |
| 79 |
PList_t *type); |
| 80 |
int (*f_PListNameProp)(PList_t plist, int pindex, const char *pname); |
| 81 |
int (*f_PListSetType)(PList_t plist, int pindex, PList_t type); |
| 82 |
int (*f_PListSetValue)(PList_t plist, |
| 83 |
int pindex, |
| 84 |
const void *pvalue, |
| 85 |
PList_t type); |
| 86 |
void (*f_PListEnumerate)(PList_t plist, PListFunc_t *user_func, void *user_data); |
| 87 |
PList_t (*f_PListDuplicate)(PList_t plist, |
| 88 |
pool_handle_t *new_mempool, |
| 89 |
int flags); |
| 90 |
pool_handle_t *(*f_PListGetPool)(PList_t plist); |
| 91 |
|
| 92 |
/* ACL attribute handling */ |
| 93 |
|
| 94 |
int (*f_ACL_LasRegister)(NSErr_t *errp, const char *attr_name, LASEvalFunc_t eval_func, LASFlushFunc_t flush_func); |
| 95 |
|
| 96 |
/* method/dbtype registration routines */ |
| 97 |
|
| 98 |
int (*f_ACL_MethodRegister)(NSErr_t *errp, const char *name, ACLMethod_t *t); |
| 99 |
int (*f_ACL_MethodIsEqual)(NSErr_t *errp, |
| 100 |
const ACLMethod_t t1, |
| 101 |
const ACLMethod_t t2); |
| 102 |
int (*f_ACL_MethodNameIsEqual)(NSErr_t *errp, |
| 103 |
const ACLMethod_t t, |
| 104 |
const char *name); |
| 105 |
int (*f_ACL_MethodFind)(NSErr_t *errp, const char *name, ACLMethod_t *t); |
| 106 |
ACLMethod_t (*f_ACL_MethodGetDefault)(NSErr_t *errp); |
| 107 |
int (*f_ACL_MethodSetDefault)(NSErr_t *errp, const ACLMethod_t t); |
| 108 |
int (*f_ACL_AuthInfoGetMethod)(NSErr_t *errp, |
| 109 |
PList_t auth_info, |
| 110 |
ACLMethod_t *t); |
| 111 |
|
| 112 |
int (*f_ACL_DbTypeRegister)(NSErr_t *errp, const char *name, DbParseFn_t func, ACLDbType_t *t); |
| 113 |
int (*f_ACL_DbTypeIsEqual)(NSErr_t *errp, |
| 114 |
const ACLDbType_t t1, |
| 115 |
const ACLDbType_t t2); |
| 116 |
int (*f_ACL_DbTypeNameIsEqual)(NSErr_t *errp, |
| 117 |
const ACLDbType_t t, |
| 118 |
const char *name); |
| 119 |
int (*f_ACL_DbTypeFind)(NSErr_t *errp, const char *name, ACLDbType_t *t); |
| 120 |
ACLDbType_t (*f_ACL_DbTypeGetDefault)(NSErr_t *errp); |
| 121 |
int (*f_ACL_AuthInfoGetDbType)(NSErr_t *errp, |
| 122 |
PList_t auth_info, |
| 123 |
ACLDbType_t *t); |
| 124 |
int (*f_ACL_DbTypeIsRegistered)(NSErr_t *errp, const ACLDbType_t dbtype); |
| 125 |
DbParseFn_t (*f_ACL_DbTypeParseFn)(NSErr_t *errp, |
| 126 |
const ACLDbType_t dbtype); |
| 127 |
|
| 128 |
int (*f_ACL_AttrGetterRegister)(NSErr_t *errp, |
| 129 |
const char *attr, |
| 130 |
ACLAttrGetterFn_t fn, |
| 131 |
ACLMethod_t m, |
| 132 |
ACLDbType_t d, |
| 133 |
int position, |
| 134 |
void *arg); |
| 135 |
|
| 136 |
int (*f_ACL_ModuleRegister)(NSErr_t *errp, const char *moduleName, AclModuleInitFunc func); |
| 137 |
int (*f_ACL_GetAttribute)(NSErr_t *errp, const char *attr, void **val, PList_t subject, PList_t resource, PList_t auth_info, PList_t global_auth); |
| 138 |
int (*f_ACL_DatabaseRegister)(NSErr_t *errp, ACLDbType_t dbtype, const char *dbname, const char *url, PList_t plist); |
| 139 |
int (*f_ACL_DatabaseFind)(NSErr_t *errp, const char *dbname, ACLDbType_t *dbtype, void **db); |
| 140 |
int (*f_ACL_DatabaseSetDefault)(NSErr_t *errp, const char *dbname); |
| 141 |
int (*f_ACL_LDAPDatabaseHandle)(NSErr_t *errp, const char *dbname, LDAP **ld, char **basedn); |
| 142 |
int (*f_ACL_AuthInfoGetDbname)(PList_t auth_info, char **dbname); |
| 143 |
int (*f_ACL_CacheFlushRegister)(AclCacheFlushFunc_t func); |
| 144 |
int (*f_ACL_CacheFlush)(void); |
| 145 |
|
| 146 |
/* ACL language and file interfaces */ |
| 147 |
|
| 148 |
ACLListHandle_t *(*f_ACL_ParseFile)(NSErr_t *errp, char *filename); |
| 149 |
ACLListHandle_t *(*f_ACL_ParseString)(NSErr_t *errp, char *buffer); |
| 150 |
int (*f_ACL_WriteString)(NSErr_t *errp, char **acl, ACLListHandle_t *acllist); |
| 151 |
int (*f_ACL_WriteFile)(NSErr_t *errp, char *filename, ACLListHandle_t *acllist); |
| 152 |
int (*f_ACL_FileRenameAcl)(NSErr_t *errp, char *filename, char *acl_name, char *new_acl_name, int flags); |
| 153 |
int (*f_ACL_FileDeleteAcl)(NSErr_t *errp, char *filename, char *acl_name, int flags); |
| 154 |
int (*f_ACL_FileGetAcl)(NSErr_t *errp, char *filename, char *acl_name, char **acl_text, int flags); |
| 155 |
int (*f_ACL_FileSetAcl)(NSErr_t *errp, char *filename, char *acl_text, int flags); |
| 156 |
|
| 157 |
/* ACL Expression construction interfaces |
| 158 |
* These are low-level interfaces that may be useful to those who are not |
| 159 |
* using the ONE ACL syntax, but want to use the ONE ACL evaluation |
| 160 |
* routines. By their low-level nature, future support of these APIs |
| 161 |
* cannot be guaranteed. Use ACL_ParseFile and ACL_ParseString wherever |
| 162 |
* possible. |
| 163 |
*/ |
| 164 |
|
| 165 |
ACLExprHandle_t *(*f_ACL_ExprNew)(const ACLExprType_t expr_type); |
| 166 |
void (*f_ACL_ExprDestroy)(ACLExprHandle_t *expr); |
| 167 |
int (*f_ACL_ExprSetPFlags)(NSErr_t *errp, |
| 168 |
ACLExprHandle_t *expr, |
| 169 |
PFlags_t flags); |
| 170 |
int (*f_ACL_ExprClearPFlags)(NSErr_t *errp, ACLExprHandle_t *expr); |
| 171 |
int (*f_ACL_ExprTerm)(NSErr_t *errp, ACLExprHandle_t *acl_expr, const char *attr_name, CmpOp_t cmp, char *attr_pattern); |
| 172 |
int (*f_ACL_ExprNot)(NSErr_t *errp, ACLExprHandle_t *acl_expr); |
| 173 |
int (*f_ACL_ExprAnd)(NSErr_t *errp, ACLExprHandle_t *acl_expr); |
| 174 |
int (*f_ACL_ExprOr)(NSErr_t *errp, ACLExprHandle_t *acl_expr); |
| 175 |
int (*f_ACL_ExprAddAuthInfo)(ACLExprHandle_t *expr, PList_t auth_info); |
| 176 |
int (*f_ACL_ExprAddArg)(NSErr_t *errp, ACLExprHandle_t *expr, const char *arg); |
| 177 |
int (*f_ACL_ExprSetDenyWith)(NSErr_t *errp, ACLExprHandle_t *expr, char *deny_type, char *deny_response); |
| 178 |
int (*f_ACL_ExprGetDenyWith)(NSErr_t *errp, ACLExprHandle_t *expr, char **deny_type, char **deny_response); |
| 179 |
int (*f_ACL_ExprAppend)(NSErr_t *errp, |
| 180 |
ACLHandle_t *acl, |
| 181 |
ACLExprHandle_t *expr); |
| 182 |
|
| 183 |
/* ACL manipulation */ |
| 184 |
|
| 185 |
ACLHandle_t *(*f_ACL_AclNew)(NSErr_t *errp, char *tag); |
| 186 |
void (*f_ACL_AclDestroy)(NSErr_t *errp, ACLHandle_t *acl); |
| 187 |
|
| 188 |
/* ACL list manipulation */ |
| 189 |
|
| 190 |
ACLListHandle_t *(*f_ACL_ListNew)(NSErr_t *errp); |
| 191 |
int (*f_ACL_ListConcat)(NSErr_t *errp, ACLListHandle_t *acl_list1, ACLListHandle_t *acl_list2, int flags); |
| 192 |
int (*f_ACL_ListAppend)(NSErr_t *errp, ACLListHandle_t *acllist, ACLHandle_t *acl, int flags); |
| 193 |
void (*f_ACL_ListDestroy)(NSErr_t *errp, ACLListHandle_t *acllist); |
| 194 |
ACLHandle_t *(*f_ACL_ListFind)(NSErr_t *errp, ACLListHandle_t *acllist, char *aclname, int flags); |
| 195 |
int (*f_ACL_ListAclDelete)(NSErr_t *errp, ACLListHandle_t *acl_list, char *acl_name, int flags); |
| 196 |
int (*f_ACL_ListGetNameList)(NSErr_t *errp, ACLListHandle_t *acl_list, char ***name_list); |
| 197 |
int (*f_ACL_NameListDestroy)(NSErr_t *errp, char **name_list); |
| 198 |
|
| 199 |
/* ACL evaluation */ |
| 200 |
|
| 201 |
int (*f_ACL_EvalTestRights)(NSErr_t *errp, ACLEvalHandle_t *acleval, const char **rights, const char **map_generic, char **deny_type, char **deny_response, char **acl_tag, int *expr_num); |
| 202 |
ACLEvalHandle_t *(*f_ACL_EvalNew)(NSErr_t *errp, pool_handle_t *pool); |
| 203 |
void (*f_ACL_EvalDestroy)(NSErr_t *errp, |
| 204 |
pool_handle_t *pool, |
| 205 |
ACLEvalHandle_t *acleval); |
| 206 |
int (*f_ACL_EvalSetACL)(NSErr_t *errp, ACLEvalHandle_t *acleval, ACLListHandle_t *acllist); |
| 207 |
PList_t (*f_ACL_EvalGetSubject)(NSErr_t *errp, ACLEvalHandle_t *acleval); |
| 208 |
int (*f_ACL_EvalSetSubject)(NSErr_t *errp, |
| 209 |
ACLEvalHandle_t *acleval, |
| 210 |
PList_t subject); |
| 211 |
PList_t (*f_ACL_EvalGetResource)(NSErr_t *errp, ACLEvalHandle_t *acleval); |
| 212 |
int (*f_ACL_EvalSetResource)(NSErr_t *errp, |
| 213 |
ACLEvalHandle_t *acleval, |
| 214 |
PList_t resource); |
| 215 |
|
| 216 |
/* Access to critical section for ACL cache */ |
| 217 |
|
| 218 |
void (*f_ACL_CritEnter)(void); |
| 219 |
void (*f_ACL_CritExit)(void); |
| 220 |
|
| 221 |
/* Miscellaneous functions */ |
| 222 |
const char *(*f_ACL_AclGetTag)(ACLHandle_t *acl); |
| 223 |
ACLHandle_t *(*f_ACL_ListGetFirst)(ACLListHandle_t *acl_list, |
| 224 |
ACLListEnum_t *acl_enum); |
| 225 |
ACLHandle_t *(*f_ACL_ListGetNext)(ACLListHandle_t *acl_list, |
| 226 |
ACLListEnum_t *acl_enum); |
| 227 |
|
| 228 |
/* Functions added after ES 3.0 release */ |
| 229 |
const char *(*f_ACL_DatabaseGetDefault)(NSErr_t *errp); |
| 230 |
int (*f_ACL_SetDefaultResult)(NSErr_t *errp, ACLEvalHandle_t *acleval, int result); |
| 231 |
int (*f_ACL_GetDefaultResult)(ACLEvalHandle_t *acleval); |
| 232 |
}; |
| 233 |
|
| 234 |
NSAPI_PUBLIC extern ACLDispatchVector_t *__nsacl_table; |
| 235 |
|
| 236 |
|
| 237 |
#ifndef INTNSACL |
| 238 |
|
| 239 |
#define nserrDispose (*__nsacl_table->f_nserrDispose) |
| 240 |
#define nserrFAlloc (*__nsacl_table->f_nserrFAlloc) |
| 241 |
#define nserrFFree (*__nsacl_table->f_nserrFFree) |
| 242 |
#define nserrGenerate (*__nsacl_table->f_nserrGenerate) |
| 243 |
|
| 244 |
/* Property list support |
| 245 |
* The Property List facility makes extensive use of pointers to |
| 246 |
* opaque structures. As such, PLists cannot be marshalled. WAI-style |
| 247 |
* ACL APIs in future releases will therefore not be using PLists. |
| 248 |
* However the C API documented here may continue to be supported |
| 249 |
* in future releases. |
| 250 |
*/ |
| 251 |
|
| 252 |
#define PListAssignValue (*__nsacl_table->f_PListAssignValue) |
| 253 |
#define PListCreate (*__nsacl_table->f_PListCreate) |
| 254 |
#define PListDefProp (*__nsacl_table->f_PListDefProp) |
| 255 |
#define PListDeleteProp (*__nsacl_table->f_PListDeleteProp) |
| 256 |
#define PListFindValue (*__nsacl_table->f_PListFindValue) |
| 257 |
#define PListInitProp (*__nsacl_table->f_PListInitProp) |
| 258 |
#define PListNew (*__nsacl_table->f_PListNew) |
| 259 |
#define PListDestroy (*__nsacl_table->f_PListDestroy) |
| 260 |
#define PListGetValue (*__nsacl_table->f_PListGetValue) |
| 261 |
#define PListNameProp (*__nsacl_table->f_PListNameProp) |
| 262 |
#define PListSetType (*__nsacl_table->f_PListSetType) |
| 263 |
#define PListSetValue (*__nsacl_table->f_PListSetValue) |
| 264 |
#define PListEnumerate (*__nsacl_table->f_PListEnumerate) |
| 265 |
#define PListDuplicate (*__nsacl_table->f_PListDuplicate) |
| 266 |
#define PListGetPool (*__nsacl_table->f_PListGetPool) |
| 267 |
|
| 268 |
/* ACL attribute handling */ |
| 269 |
|
| 270 |
#define ACL_LasRegister (*__nsacl_table->f_ACL_LasRegister) |
| 271 |
|
| 272 |
/* method/dbtype registration routines */ |
| 273 |
|
| 274 |
#define ACL_MethodRegister (*__nsacl_table->f_ACL_MethodRegister) |
| 275 |
#define ACL_MethodIsEqual (*__nsacl_table->f_ACL_MethodIsEqual) |
| 276 |
#define ACL_MethodNameIsEqual (*__nsacl_table->f_ACL_MethodNameIsEqual) |
| 277 |
#define ACL_MethodFind (*__nsacl_table->f_ACL_MethodFind) |
| 278 |
#define ACL_MethodGetDefault (*__nsacl_table->f_ACL_MethodGetDefault) |
| 279 |
#define ACL_MethodSetDefault (*__nsacl_table->f_ACL_MethodSetDefault) |
| 280 |
#define ACL_AuthInfoGetMethod (*__nsacl_table->f_ACL_AuthInfoGetMethod) |
| 281 |
#define ACL_DbTypeRegister (*__nsacl_table->f_ACL_DbTypeRegister) |
| 282 |
#define ACL_DbTypeIsEqual (*__nsacl_table->f_ACL_DbTypeIsEqual) |
| 283 |
#define ACL_DbTypeNameIsEqual (*__nsacl_table->f_ACL_DbTypeNameIsEqual) |
| 284 |
#define ACL_DbTypeFind (*__nsacl_table->f_ACL_DbTypeFind) |
| 285 |
#define ACL_DbTypeGetDefault (*__nsacl_table->f_ACL_DbTypeGetDefault) |
| 286 |
#define ACL_AuthInfoGetDbType (*__nsacl_table->f_ACL_AuthInfoGetDbType) |
| 287 |
#define ACL_DbTypeIsRegistered (*__nsacl_table->f_ACL_DbTypeIsRegistered) |
| 288 |
#define ACL_DbTypeParseFn (*__nsacl_table->f_ACL_DbTypeParseFn) |
| 289 |
#define ACL_AttrGetterRegister (*__nsacl_table->f_ACL_AttrGetterRegister) |
| 290 |
#define ACL_ModuleRegister (*__nsacl_table->f_ACL_ModuleRegister) |
| 291 |
#define ACL_GetAttribute (*__nsacl_table->f_ACL_GetAttribute) |
| 292 |
#define ACL_DatabaseRegister (*__nsacl_table->f_ACL_DatabaseRegister) |
| 293 |
#define ACL_DatabaseFind (*__nsacl_table->f_ACL_DatabaseFind) |
| 294 |
#define ACL_DatabaseSetDefault (*__nsacl_table->f_ACL_DatabaseSetDefault) |
| 295 |
#define ACL_LDAPDatabaseHandle (*__nsacl_table->f_ACL_LDAPDatabaseHandle) |
| 296 |
#define ACL_AuthInfoGetDbname (*__nsacl_table->f_ACL_AuthInfoGetDbname) |
| 297 |
#define ACL_CacheFlushRegister (*__nsacl_table->f_ACL_CacheFlushRegister) |
| 298 |
#define ACL_CacheFlush (*__nsacl_table->f_ACL_CacheFlush) |
| 299 |
|
| 300 |
/* ACL language and file interfaces */ |
| 301 |
|
| 302 |
#define ACL_ParseString (*__nsacl_table->f_ACL_ParseString) |
| 303 |
|
| 304 |
/* ACL Expression construction interfaces |
| 305 |
* These are low-level interfaces that may be useful to those who are not |
| 306 |
* using the ONE ACL syntax, but want to use the ONE ACL evaluation |
| 307 |
* routines. By their low-level nature, future support of these APIs |
| 308 |
* cannot be guaranteed. Use ACL_ParseFile and ACL_ParseString wherever |
| 309 |
* possible. |
| 310 |
*/ |
| 311 |
|
| 312 |
#define ACL_ExprNew (*__nsacl_table->f_ACL_ExprNew) |
| 313 |
#define ACL_ExprDestroy (*__nsacl_table->f_ACL_ExprDestroy) |
| 314 |
#define ACL_ExprSetPFlags (*__nsacl_table->f_ACL_ExprSetPFlags) |
| 315 |
#define ACL_ExprClearPFlags (*__nsacl_table->f_ACL_ExprClearPFlags) |
| 316 |
#define ACL_ExprTerm (*__nsacl_table->f_ACL_ExprTerm) |
| 317 |
#define ACL_ExprNot (*__nsacl_table->f_ACL_ExprNot) |
| 318 |
#define ACL_ExprAnd (*__nsacl_table->f_ACL_ExprAnd) |
| 319 |
#define ACL_ExprOr (*__nsacl_table->f_ACL_ExprOr) |
| 320 |
#define ACL_ExprAddAuthInfo (*__nsacl_table->f_ACL_ExprAddAuthInfo) |
| 321 |
#define ACL_ExprAddArg (*__nsacl_table->f_ACL_ExprAddArg) |
| 322 |
#define ACL_ExprSetDenyWith (*__nsacl_table->f_ACL_ExprSetDenyWith) |
| 323 |
#define ACL_ExprGetDenyWith (*__nsacl_table->f_ACL_ExprGetDenyWith) |
| 324 |
#define ACL_ExprAppend (*__nsacl_table->f_ACL_ExprAppend) |
| 325 |
|
| 326 |
/* ACL manipulation */ |
| 327 |
|
| 328 |
#define ACL_AclNew (*__nsacl_table->f_ACL_AclNew) |
| 329 |
#define ACL_AclDestroy (*__nsacl_table->f_ACL_AclDestroy) |
| 330 |
|
| 331 |
/* ACL list manipulation */ |
| 332 |
|
| 333 |
#define ACL_ListNew (*__nsacl_table->f_ACL_ListNew) |
| 334 |
#define ACL_ListConcat (*__nsacl_table->f_ACL_ListConcat) |
| 335 |
#define ACL_ListAppend (*__nsacl_table->f_ACL_ListAppend) |
| 336 |
#define ACL_ListDestroy (*__nsacl_table->f_ACL_ListDestroy) |
| 337 |
#define ACL_ListFind (*__nsacl_table->f_ACL_ListFind) |
| 338 |
#define ACL_ListAclDelete (*__nsacl_table->f_ACL_ListAclDelete) |
| 339 |
#define ACL_ListGetNameList (*__nsacl_table->f_ACL_ListGetNameList) |
| 340 |
#define ACL_NameListDestroy (*__nsacl_table->f_ACL_NameListDestroy) |
| 341 |
|
| 342 |
/* ACL evaluation */ |
| 343 |
|
| 344 |
#define ACL_EvalTestRights (*__nsacl_table->f_ACL_EvalTestRights) |
| 345 |
#define ACL_EvalNew (*__nsacl_table->f_ACL_EvalNew) |
| 346 |
#define ACL_EvalDestroy (*__nsacl_table->f_ACL_EvalDestroy) |
| 347 |
#define ACL_EvalSetACL (*__nsacl_table->f_ACL_EvalSetACL) |
| 348 |
#define ACL_EvalGetSubject (*__nsacl_table->f_ACL_EvalGetSubject) |
| 349 |
#define ACL_EvalSetSubject (*__nsacl_table->f_ACL_EvalSetSubject) |
| 350 |
#define ACL_EvalGetResource (*__nsacl_table->f_ACL_EvalGetResource) |
| 351 |
#define ACL_EvalSetResource (*__nsacl_table->f_ACL_EvalSetResource) |
| 352 |
|
| 353 |
/* Access to critical section for ACL cache */ |
| 354 |
|
| 355 |
#define ACL_CritEnter (*__nsacl_table->f_ACL_CritEnter) |
| 356 |
#define ACL_CritExit (*__nsacl_table->f_ACL_CritExit) |
| 357 |
|
| 358 |
/* Miscellaneous functions */ |
| 359 |
|
| 360 |
#define ACL_AclGetTag (*__nsacl_table->f_ACL_AclGetTag) |
| 361 |
#define ACL_ListGetFirst (*__nsacl_table->f_ACL_ListGetFirst) |
| 362 |
#define ACL_ListGetNext (*__nsacl_table->f_ACL_ListGetNext) |
| 363 |
|
| 364 |
/* Functions added after ES 3.0 release */ |
| 365 |
#define ACL_DatabaseGetDefault (*__nsacl_table->f_ACL_DatabaseGetDefault) |
| 366 |
#define ACL_SetDefaultResult (*__nsacl_table->f_ACL_SetDefaultResult) |
| 367 |
#define ACL_GetDefaultResult (*__nsacl_table->f_ACL_GetDefaultResult) |
| 368 |
|
| 369 |
#endif /* !INTNSACL */ |
| 370 |
|
| 371 |
NSPR_END_EXTERN_C |
| 372 |
|
| 373 |
#endif /* !PUBLIC_NSACL_ACLAPI_H */ |