3.1.7.2 Interface with EAP

The PEAP layer interfaces with the EAP layer on both the client and server using the following abstract methods. If the abstract methods noted in the following descriptions return a failure error code, the connection is terminated, and the error is indicated to the transport layer.

GetMaxSendPacketSize: The PEAP layer uses this method on both client and server to get the maximum size of the EAP packet. The method takes the following parameter: an output integer that contains the maximum size of the EAP packet.

isEAPAuthSuccess: The PEAP layer uses this method on the client to determine whether the inner EAP method authentication is successful or not. This method also returns MPPE send and receive keys in case the authentication is successful. The method takes the following parameters: an output Boolean flag indicating authentication result, the output MPPE send and receive keys, and the lengths of the keys in case the authentication result flag indicates TRUE.

EapInitialize: The PEAP layer or the transport layer carrying EAP uses this method on both the client and server to initialize the EAP layer. This method takes the list of supported EAP methods as a parameter.