avapfile.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 _avaparsedfiles_h_
  7. #define _avaparsedfiles_h_
  8. #include "libaccess/ava.h"
  9. #include "frame/req.h"
  10. #include "base/session.h"
  11. #define AUTH_DB_FILE "AvaCertmap"
  12. #define AVADB_TAG "avadb"
  13. #define AVA_DB_SEL "ava_db_sel" /*Variable name used in
  14. *outputAVAdbs
  15. */
  16. extern void outputAVAdbs (char *chosen); /*Outputs the selector of auth databases
  17. *and makes it so that the form submits
  18. *when onChange event occurs.
  19. */
  20. /*For the following 3 functions, enter the full path of
  21. *ava database file includint tag and filename
  22. */
  23. /*Before calling _getTable, initializa yy_sn and yy_rq. Set to NULL if no
  24. *Session* or Request* variables exist and an error will be reported with
  25. *function report_error(libamin.h). Otherwise error will be logged into
  26. *the server's error log
  27. */
  28. extern AVATable *_getTable (char *avadbfile);
  29. extern AVATable *_wasParsed (char *avadbfile);/*Assumes a call to yyparse was just
  30. *completed
  31. */
  32. extern int _hasBeenParsed (char *avadbfile);/*Check if _getTable returns NULL or not*/
  33. extern AVAEntry* _getAVAEntry (char *groupid, AVATable *table);
  34. extern AVAEntry* _deleteAVAEntry (char *groupid, AVATable *table);
  35. extern void _addAVAtoTable (AVAEntry *entry, AVATable *table);
  36. extern void AVAEntry_Free (AVAEntry *entry);
  37. /*Functions for writing out files*/
  38. extern void PrintHeader (FILE *outfile);
  39. extern void writeOutFile (char *avadbfilename, AVATable *table);
  40. extern int yyparse();
  41. extern FILE *yyin;
  42. extern char *currFile;
  43. extern Session *yy_sn;
  44. extern Request *yy_rq;
  45. #endif /*_avaparsedfiles_h_*/