eap_mschapv2.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (C) 2009 Tobias Brunner
  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 eap_mschapv2_i eap_mschapv2
  17. * @{ @ingroup eap_mschapv2
  18. */
  19. #ifndef EAP_MSCHAPV2_H_
  20. #define EAP_MSCHAPV2_H_
  21. typedef struct eap_mschapv2_t eap_mschapv2_t;
  22. #include <sa/eap/eap_method.h>
  23. /**
  24. * Implementation of the eap_method_t interface using EAP-MS-CHAPv2.
  25. */
  26. struct eap_mschapv2_t {
  27. /**
  28. * Implemented eap_method_t interface.
  29. */
  30. eap_method_t eap_method_interface;
  31. };
  32. /**
  33. * Creates the EAP method EAP-MS-CHAPv2 acting as server.
  34. *
  35. * @param server ID of the EAP server
  36. * @param peer ID of the EAP client
  37. * @return eap_mschapv2_t object
  38. */
  39. eap_mschapv2_t *eap_mschapv2_create_server(identification_t *server, identification_t *peer);
  40. /**
  41. * Creates the EAP method EAP-MS-CHAPv2 acting as peer.
  42. *
  43. * @param server ID of the EAP server
  44. * @param peer ID of the EAP client
  45. * @return eap_mschapv2_t object
  46. */
  47. eap_mschapv2_t *eap_mschapv2_create_peer(identification_t *server, identification_t *peer);
  48. #endif /** EAP_MSCHAPV2_H_ @}*/