pts_creds.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright (C) 2011 Andreas Steffen
  3. * HSR Hochschule fuer Technik Rapperswil
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation; either version 2 of the License, or (at your
  8. * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  12. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  13. * for more details.
  14. */
  15. /**
  16. * @defgroup pts_creds pts_creds
  17. * @{ @ingroup pts
  18. */
  19. #ifndef PTS_CREDS_H_
  20. #define PTS_CREDS_H_
  21. typedef struct pts_creds_t pts_creds_t;
  22. #include <library.h>
  23. #include <credentials/credential_set.h>
  24. /**
  25. * Class implementing a PTS credentials set
  26. */
  27. struct pts_creds_t {
  28. /**
  29. * Get the credential set
  30. *
  31. * @return credential set
  32. */
  33. credential_set_t* (*get_set)(pts_creds_t *this);
  34. /**
  35. * Destroys a pts_creds_t object.
  36. */
  37. void (*destroy)(pts_creds_t *this);
  38. };
  39. /**
  40. * Creates an pts_creds_t object
  41. *
  42. * @param path path to the PTS cacerts directory
  43. */
  44. pts_creds_t* pts_creds_create(char *path);
  45. #endif /** PTS_CREDS_H_ @}*/