Access Point Initialization of EAP

Upon initialization, the Access Point (AP) queries the registry for installed authentication protocols. The AP then calls the exported function RasEapGetInfo for each authentication protocol. The RasEapGetInfo function receives a single parameter of type PPP_EAP_INFO. The AP uses the dwEapTypeId member of this structure to specify the authentication protocol. Note that a single DLL may support more than one protocol. If RasEapGetInfo returns any value other than NO_ERROR, the AP assumes that the authentication protocol is unavailable.

On return from RasEapGetInfo the PPP_EAP_INFO structure contains pointers to the functions RasEapInitialize, RasEapBegin, RasEapMakeMessage, and RasEapEnd in the EAP DLL. The AP service uses these functions to interoperate with the authentication protocol. The AP immediately calls RasEapInitialize for each authentication protocol, to initialize it. When the service shuts down it calls RasEapInitialize again, this time with the fInitialize parameter set to FALSE to indicate that the authentication protocol should shut itself down.