README 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. EAP peer/server library and example program
  2. Copyright (c) 2007, Jouni Malinen <j@w1.fi>
  3. This software may be distributed under the terms of the BSD license.
  4. See the parent directory README for more details.
  5. The interfaces of the EAP server/peer implementation are based on RFC
  6. 4137 (EAP State Machines). This RFC is coordinated with the state
  7. machines defined in IEEE 802.1X-2004. hostapd and wpa_supplicant
  8. include implementation of the IEEE 802.1X EAPOL state machines and the
  9. interface between them and EAP. However, the EAP implementation can be
  10. used with other protocols, too, by providing a compatible interface
  11. which maps the EAPOL<->EAP variables to another protocol.
  12. This directory contains an example showing how EAP peer and server
  13. code from wpa_supplicant and hostapd can be used as a library. The
  14. example program initializes both an EAP server and an EAP peer
  15. entities and then runs through an EAP-PEAP/MSCHAPv2 authentication.
  16. eap_example_peer.c shows the initialization and glue code needed to
  17. control the EAP peer implementation. eap_example_server.c does the
  18. same for EAP server. eap_example.c is an example that ties in both the
  19. EAP server and client parts to allow an EAP authentication to be
  20. shown.
  21. In this example, the EAP messages are passed between the server and
  22. the peer are passed by direct function calls within the same process.
  23. In practice, server and peer functionalities would likely reside in
  24. separate devices and the EAP messages would be transmitted between the
  25. devices based on an external protocol. For example, in IEEE 802.11
  26. uses IEEE 802.1X EAPOL state machines to control the transmission of
  27. EAP messages and WiMax supports optional PMK EAP authentication
  28. mechanism that transmits EAP messages as defined in IEEE 802.16e.
  29. The EAP library links in number of helper functions from src/utils and
  30. src/crypto directories. Most of these are suitable as-is, but it may
  31. be desirable to replace the debug output code in src/utils/wpa_debug.c
  32. by dropping this file from the library and re-implementing the
  33. functions there in a way that better fits in with the main
  34. application.