las.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. * END COPYRIGHT BLOCK **/
  6. #ifndef LAS_H
  7. #define LAS_H
  8. #include <libaccess/nserror.h>
  9. #include <libaccess/acl.h>
  10. #include <base/plist.h>
  11. NSPR_BEGIN_EXTERN_C
  12. extern int LASTimeOfDayEval(NSErr_t *errp, char *attribute, CmpOp_t comparator,
  13. char *pattern, int *cachable, void **las_cookie,
  14. PList_t subject, PList_t resource, PList_t auth_info,
  15. PList_t global_auth);
  16. extern int LASDayOfWeekEval(NSErr_t *errp, char *attribute, CmpOp_t comparator,
  17. char *pattern, int *cachable, void **las_cookie,
  18. PList_t subject, PList_t resource, PList_t auth_info,
  19. PList_t global_auth);
  20. extern int LASIpEval(NSErr_t *errp, char *attribute, CmpOp_t comparator,
  21. char *pattern, int *cachable, void **las_cookie,
  22. PList_t subject, PList_t resource, PList_t auth_info,
  23. PList_t global_auth);
  24. extern int LASDnsEval(NSErr_t *errp, char *attribute, CmpOp_t comparator,
  25. char *pattern, int *cachable, void **las_cookie,
  26. PList_t subject, PList_t resource, PList_t auth_info,
  27. PList_t global_auth);
  28. extern int LASGroupEval(NSErr_t *errp, char *attribute, CmpOp_t comparator,
  29. char *pattern, int *cachable, void **las_cookie,
  30. PList_t subject, PList_t resource, PList_t auth_info,
  31. PList_t global_auth);
  32. extern int LASUserEval(NSErr_t *errp, char *attribute, CmpOp_t comparator,
  33. char *pattern, int *cachable, void **las_cookie,
  34. PList_t subject, PList_t resource, PList_t auth_info,
  35. PList_t global_auth);
  36. /* MLM - for admin delegation */
  37. extern int LASProgramEval(NSErr_t *errp, char *attribute, CmpOp_t comparator,
  38. char *pattern, int *cachable, void **las_cookie,
  39. PList_t subject, PList_t resource, PList_t auth_info,
  40. PList_t global_auth);
  41. extern void LASTimeOfDayFlush(void **cookie);
  42. extern void LASDayOfWeekFlush(void **cookie);
  43. extern void LASIpFlush(void **cookie);
  44. extern void LASDnsFlush(void **cookie);
  45. NSPR_END_EXTERN_C
  46. #endif