ava.h 667 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 _ava_h
  7. #define _ava_h
  8. #define ENTRIES_ALLOCSIZE 100
  9. #define ORGS_ALLOCSIZE 15
  10. #ifdef XP_WIN32
  11. #define NSAPI_PUBLIC __declspec(dllexport)
  12. #else /* !XP_WIN32 */
  13. #define NSAPI_PUBLIC
  14. #endif
  15. typedef struct {
  16. char *email;
  17. char *locality;
  18. char *userid;
  19. char *state;
  20. char *country;
  21. char *company;
  22. int numOrgs;
  23. char **organizations;
  24. char *CNEntry;
  25. } AVAEntry;
  26. typedef struct {
  27. char *userdb;
  28. int numEntries;
  29. AVAEntry **enteredTable;
  30. } AVATable;
  31. #endif