las.h 2.1 KB

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