⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eap.doxygen

📁 IEEE 802.11a/b/g 服务器端AP
💻 DOXYGEN
字号:
/**\page eap_module EAP server implementationExtensible Authentication Protocol (EAP) is an authentication frameworkdefined in RFC 3748. hostapd uses a separate code module for EAP serverimplementation. This module was designed to use only a minimal set ofdirect function calls (mainly, to debug/event functions) in order forit to be usable in other programs. The design of the EAPimplementation is based loosely on RFC 4137. The state machine isdefined in this RFC and so is the interface between the server statemachine and methods. As such, this RFC provides useful information forunderstanding the EAP server implementation in hostapd.Some of the terminology used in EAP state machine is referring toEAPOL (IEEE 802.1X), but there is no strict requirement on the lowerlayer being IEEE 802.1X if EAP module is built for other programs than%wpa_supplicant. These terms should be understood to refer to thelower layer as defined in RFC 4137.\section adding_eap_methods Adding EAP methodsEach EAP method is implemented as a separate module, usually as one Cfile named eap_<name of the method>.c, e.g., eap_md5.c. All EAPmethods use the same interface between the server state machine andmethod specific functions. This allows new EAP methods to be addedwithout modifying the core EAP state machine implementation.New EAP methods need to be registered by adding them into the build(Makefile) and the EAP method registration list in theeap_server_register_methods() function of eap_methods.c. Each EAPmethod should use a build-time configuration option, e.g., EAP_TLS, inorder to make it possible to select which of the methods are includedin the build.EAP methods must implement the interface defined in eap_i.h. structeap_method defines the needed function pointers that each EAP methodmust provide. In addition, the EAP type and name are registered usingthis structure. This interface is based on section 4.4 of RFC 4137.It is recommended that the EAP methods would use generic helperfunctions, eap_msg_alloc() and eap_hdr_validate() when processingmessages. This allows code sharing and can avoid missing some of theneeded validation steps for received packets. In addition, thesefunctions make it easier to change between expanded and legacy EAPheader, if needed.When adding an EAP method that uses a vendor specific EAP type(Expanded Type as defined in RFC 3748, Chapter 5.7), the new methodmust be registered by passing vendor id instead of EAP_VENDOR_IETF toeap_server_method_alloc(). These methods must not try to emulateexpanded types by registering a legacy EAP method for type 254. Seeeap_vendor_test.c for an example of an EAP method implementation thatis implemented as an expanded type.*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -