Received Success-Response Packet

If the currentState variable is set to EAP_CHAP_SUCCESS_REQUEST_SENT, then:

  • Prepare an EAP Success packet, and send it to the peer.

  • Obtain a Master Session Key (section using AuthenticatorChallenge, PeerChallenge, Username, and Password.

  • Trigger the transport layer with the authentication result as Success, and pass the Master Session Key to the transport layer.

  • Set currentState to EAP_CHAP_SUCCESS.

If the currentState variable is not set to EAP_CHAP_SUCCESS_REQUEST_SENT, the packet is ignored.